Zabaware Support Forums
Zabaware Forums => Ultra Hal 7.0 => Topic started by: Bill DeWitt on October 22, 2006, 05:10:12 pm
-
I have tried several color models to adjust the SkinUserBGColor to match my rgb<000,255,000> without success. I have tried CMY, CMYK, HSB, HLS and YIQ.
Unless I have done something wrong (which is not unlikely), it's some odd value or method. It has 8 digits, which seem to operate randomly. Anyone know how to convert?
-
Bill DeWitt,
I'm looking at the blued.uhp, SkinUserBGColor=11316396
this means red = 113, green = 163, and blue = 96.
For the brain.uhp it = 0
red=0, green=0, blue=0 yeilds black
for =255255255
red=255, green=255, blue=255 yeilds white
Hope this helped.
Carl2
-
Thanks for looking into it Carl, maybe I was just working on it too late in the evening. But I am sure I tried 000255000 and got red or orange or an error message.
I'll get to mess with it some more in a little while
Thanks again! Bill
-
Well, it is still not responding with typical rgb format.
SkinUserBGColor=000255000 gives me orange.
SkinUserBGColor=100200100 gives me a error.
SkinUserBGColor=1010010 gives a dark brown
The last should only happen if it were 10, 10, 01...
I'm so confused...[:(]
-
quote:
Originally posted by Carl2
Bill DeWitt,
I'm looking at the blued.uhp, SkinUserBGColor=11316396
this means red = 113, green = 163, and blue = 96.
For the brain.uhp it = 0
red=0, green=0, blue=0 yeilds black
for =255255255
red=255, green=255, blue=255 yeilds white
Hope this helped.
Carl2
Carl, did you try 255255255? I get an error, not white. I can't believe I have spent two days trying to get one color value right.
-
Yes, 255,255,255 = White
Perhaps the following link might help:
http://www.web-source.net/216_color_chart.htm
-
quote:
Originally posted by Art
Yes, 255,255,255 = White
Thanks Art,
Except it doesn't seem to work that way in the SkinUserBGColor parameter. I get an error. I have found several ways to make white, but 255255255 is not one of them.
I do know the RGB format, and have certainly tried that, so can I assume that there is a problem with my copy of Hal? Have you actually used this to make a background color in the user input text box?
I also read a post about this which suggests that the format is (red+(256*green)+(256*256*blue)) but I didn't get a chance to test the many ways this might possibly be implemented (for instance, what is green? 010? 1.0? IOW, how are the indivicual colors formatted before you start multiplying).
Urrgggh! Third day on ome little not-green box.
-
quote:
Originally posted by Bill DeWitt
I also read a post about this which suggests that the format is (red+(256*green)+(256*256*blue))
right in VB
Public Function rgbtocolor(r As Byte, g As Byte, b As Byte)
rgbtocolor = r + (g * 256) + (b * 65536)
End Function
Public Function colortorgb(color As Long) as string
Dim r, g, b As Byte
r = color And 255
g = (color 256) And 255
b = (color 65536) And 255
colortorgb = r & "," & g & "," & b
End Function
Color white is not "255255255" but 16777215, red=255, green=65280
and blue=16711680
-
quote:
Originally posted by Darius
Color white is not "255255255" but 16777215, red=255, green=65280
and blue=16711680
That's what I needed to know. Worked first time every time... many, many thanks.
Now at least I can move on to some other trivial problem that will completely stump me until I grind my teeth to stubs....
BTW, I always used a color picker in Visual Basic, but is there a history to this unusual way to set a color? Just curious...
-
Darius,
Thanks for the info, I've made a copy since I've seen this mentioned before.
Bill D,
Sorry to be giving you the wrong info, I made a skin ages ago, modified paramaters, must not have gotten into this area. Glad to see someone gave you the right info.
Carl2
-
OK, I guess I'll help you nice people out with this one.
Here is a sample of a proper skin.uhp for use in Hal 6.0
along with the proper designations for colors. [;)]
Just input your skin and button names for the bitmaps you
are using, along with the bitmap and text I/O box coordinates,
and the transparency matrix coordinates from the .dat file that
you will have to generate using the Make Transparency Tool. [:D]
__________________________________________________________________
[Ultra Hal Assistant 6.0 Plugin]
Type=Skin
Name=nameofskin
Author=your name
About=description of skin
;Base size and bitmap of background
SkinPic=nameofskin.bmp
SkinWidth=
SkinHeight=
SkinFontSize=10
;Coordinates of Animated Character
SkinFaceX=
SkinFaceY=
skinFaceWidth=
skinFaceHeight=
;Coordinates and bitmap of menu button
SkinMenuPic=MENU.bmp
SkinMenuX=
SkinMenuY=
SkinMenuWidth=
SkinMenuHeight=
;Coordinates and bitmap of microphone button
SkinMicPic=MIC.bmp
SkinMicX=
SkinMicY=
SkinMicWidth=
SkinMicHeight=
;Coordinates and bitmap of minimize button
SkinMinimizePic=MIN.bmp
SkinMinimizeX=
SkinMinimizeY=
SkinMinimizeWidth=
SkinMinimizeHeight=
;Coordinates and bitmap of close button
SkinClosePic=CLOSE.bmp
SkinCloseX=
SkinCloseY=
SkinCloseWidth=
SkinCloseHeight=
;Coordinates and color of Hal's output box
;The background of the output displayed is transparent to the background bitmap
SkinHalBGColor=16777215
SkinHalFGColor=0
SkinHalFontName=Verdana
SkinHalTalkAlign=Center
SkinHalTalkFontSize=12
SkinHalX=
SkinHalY=
skinhalWidth=
skinhalHeight=
;Coordinates and color of User's input box
;The background of the input displayed is transparent to the background bitmap
SkinUserBGColor=16777215
SkinUserFGColor=0
SkinUserFontName=Verdana
SkinUserTalkAlign=Center
SkinUserTalkFontSize=12
SkinUserX=
SkinUserY=
skinuserWidth=
skinuserHeight=
;Microphone Meter Settings
SkinVolBGColor=2550255
SkinVolMode=3
;Coordinates and color of Caption where both Hal's and the User's name is displayed
;The background of the text displayed is transparent to the background bitmap
SkinTalkFGColor=0
SkinTalkFontName=Verdana
SkinTalkAlign=Center
SkinTalkFontSize=8
SkinTalkX=
SkinTalkY=
SkinTalkWidth=
SkinTalkHeight=
Transparency= (tranparency map coordinates are inputted here)
***You need the MakeTransparency Utility from zabaware to generate
the .dat file coordinate matrix from the skin bitmap image file.
Then copy and paste them here. Any areas you want to be
transparent should be colored using a palette setting
of 2550255
____________________________________________________________________
If you can't find the MakeTransperancy Utility on the
plug-ins page here, you can also download it from the
Archive section of my web site. [:)]
http://www.charctercreationsanddesignworks.us/index.html
-
I found this topic when searching for an answer myself.
I eventually found at least a partial solution (a list of color codes that works). It's apparently a Windows proprietary thing:
http://geni.embeddingperl.com/public/images/pbcolors.png
I'm also attaching the chart in case the link goes down.
-
Actually, I found out that doesn't work either. Still get the errors, though at least now the background is white instead of black. Does anyone know how to change these colors? It's maddening.
-
AnArtist
Frist I find this a bit confusing, I originally thought of the characters skin coloring but find in this case skin means the Graphical User Interface or GUI. I refer to the characters skin coloring as the body skin. I am using Paint Shop Pro and created my own skin ( GUI ) without the need to go into the formatting of the color code. I basically just drew a picture of the GUI complete with all the buttons and interfaces and put them into the Skins folder.
There are some skins for use with Ultra Hal available for download at http://www.global.datahopa.co.uk/hal/downloads/ ......
Carl2
-
I've created my own skin too, including buttons - but it needs a UHP file to specify the coordinates of the buttons, input and output boxes, etc. Even when I delete the 'SkinUserBGColor' and 'SkinHalBGColor' lines it still shows those boxes as black. I simply want those boxes to be either transparent (to show the color I put in those boxes on my GUI design), or else to simple reiterate that colour (which is HEX #F7EED2, or RGB 247,238,210).
I attempted to simply use the 'Cream' colour from the chart above, which is somewhat close. Although it does change the input/output box colours from black to white, it doesn't change them to creme - plus it gives a number of errors when Hal is opened that one must click 'Ignore'
through.
Granted, to create my UHP file, I created a new copy of LrgeChar.uhp which I renamed, retitled, and edited. The only two BG colours specified in my variant are the input and output boxes, however, and they still appear either black (without errors) or white (with errors) only, regardless of the colour specified.
-
AnArtist,
Yes, I'd forgotten all about that, I just opened the uhp file. I'll put my file in it's possible it may help and I'd suggest looking at some of the included skin uhp's to get a better idea.
[Ultra Hal Assistant 2.0 Plugin]
Type=Skin
Name=WinX
Author=CJ
About=The character window in this skin uses the maximum space available.
;Base size and bitmap of background
SkinPic=WinX.jpg
SkinWidth=528
SkinHeight=432
SkinFontSize=14
;Coordinates of Animated Character
SkinFaceX=20
SkinFaceY=19
skinFaceWidth=250
skinFaceHeight=361
;Coordinates and bitmap of menu button
SkinMenuPic=WinXMen.jpg
SkinMenuX=279
SkinMenuY=59
SkinMenuWidth=78
SkinMenuHeight=36
;Coordinates and bitmap of microphone button
SkinMicPic=WinXMic.jpg
SkinMicX=365
SkinMicY=59
SkinMicWidth=78
SkinMicHeight=36
;Coordinates and bitmap of minimize button
SkinMinimizePic=WinXMin.jpg
SkinMinimizeX=452
SkinMinimizeY=21
SkinMinimizeWidth=24
SkinMinimizeHeight=24
;Coordinates and bitmap of close button
SkinClosePic=WinXClose.jpg
SkinCloseX=484
SkinCloseY=21
SkinCloseWidth=24
SkinCloseHeight=24
;Coordinates and color of Hal's output box
SkinHalBGColor=16564390
SkinHalFGColor=6561310
SkinHalFontName=Verdana
SkinHalX=276
SkinHalY=229
skinhalWidth=232
skinhalHeight=152
;Coordinates and color of User's input box 12632256
SkinUserBGColor=16564390
SkinUserFGColor=6561310
SkinUserFontName=Verdana
SkinUserX=19
SkinUserY=386
skinuserWidth=491
skinuserHeight=26
;Coordinates and color of Caption where both Hal's
; and the User's name is displayed
;The background of the text displayed is
;transparent to the background bitmap
SkinTalkBGColor=16564390
SkinTalkFGColor=6561310
SkinTalkFontName=Verdana
SkinTalkAlign=Center
SkinTalkFontSize=10
SkinTalkX=279
SkinTalkY=22
SkinTalkWidth=164
SkinTalkHeight=24
;Settings for Volume Meter
SkinVolBGColor=16564390
SkinVolMode=4
SkinVolX=451
SkinVolY=78
SkinVolWidth=30
SkinVolHeight=15
;16777215
;This is the transparent mask. If the skin should have transparent areas enter a list
;of all the coordinates of every transparent area. Use the program MakeTran.exe
;located in Hal's folder to help you make a transparecny mask. If the skin is a rectangle
;then set the transparency string to "false" otherwise enter the string of values that
;the MakeTran.exe program gives you.
Transparency=False
At this time I'm not even sure where these numbers for color came from, I do remember counting pixels for the placement. I do remember coming up with a input or output box with a slight yellowish color. I'm happy with what I have and I'm much more interested in the bodyskin for the character. I just opened Hal and I have a light blue input and output box and the text is black.
Carl2
-
This link maybe of some use to people wanting to make their own skins https://000bbdfad60a76827467-2fbb862ca2f23e9c6f441a5393937e2b.ssl.cf2.rackcdn.com/HAL_InterfaceDesignManual.pdf (https://000bbdfad60a76827467-2fbb862ca2f23e9c6f441a5393937e2b.ssl.cf2.rackcdn.com/HAL_InterfaceDesignManual.pdf)
The tool for helping to create the skins is here in the developers section of the website. It is called MakeTran.exe
-
Sorry Carl but I am using Firefox and the page for the link you posted gives me, "Server not found" message.
Thank you,
raybe
-
Raybe,
Just tried this link http://www.web-source.net/216_color_chart.htm I've got win 8.1 and am using internet explorer, it works for me.
Carl2
-
Carl,
I believe he was referring to your previous posted link that ended with the ... and it did indeed show a Server not Found message.
This latest one does work fine.
-
Art,
Thanks for putting that in, seems you have a lot of useful advice.
Carl2