Zabaware Support Forums

Zabaware Forums => General Discussion => Topic started by: versionfour on December 31, 2005, 07:07:25 pm

Title: Help with color definition in .uhp skin files
Post by: versionfour on December 31, 2005, 07:07:25 pm
I don't understand how to input values for background and foreground colors in the input and output boxes. I could see that six digits would mean something like ff00ff. But there are eight digits and sometimes seven.

;Coordinates and color of Hal's output box
SkinHalBGColor=10266780  <--- ???
SkinHalFGColor=16777215  <--- ???
SkinHalFontName=Arial
SkinHalX=497
SkinHalY=166
skinhalWidth=164
skinhalHeight=74
Title: Help with color definition in .uhp skin files
Post by: Carl2 on January 01, 2006, 07:06:54 pm
versionfour,
  I haven't worked with this in some time but if memory is correct the three colors R,G,B are from 0 to 256, a total of nine.  I'm looking at blued.uhp which gives 11316396, red = 113, g = 163 and blue is 96 or 096. The next set is 2105376 or 210, 53, 76, leading zeros are removed.
Carl2
Title: Help with color definition in .uhp skin files
Post by: freddy888 on January 02, 2006, 04:34:14 am
If thats the case then you might find these pages useful :

http://www.hypersolutions.org/rgb.html
Title: Help with color definition in .uhp skin files
Post by: versionfour on January 02, 2006, 06:21:17 am
Thank you both, Freddy888 and Carl2. I haven't messed with hexidecimals enough to know. They do not related to 256 in the way we might think. Dr Benway discovered the solution. And I was mean enough to criticize eyelashes.htr.

The .uhp file uses the Audrey Hepburn method:

 + [green x 256] + [blue x 256 x 256] = color definition

Use this spell and the magic rainbow will rain hard pieces of candy. I think I shall search the archives for your skins to study.
Title: Help with color definition in .uhp skin files
Post by: Dr.Benway on January 02, 2006, 10:44:47 am
This may come as a relieve: I didn't make the eyelashes. I ripped them off from Haptek's Lola. And I am not too fond of them either. They are too large. [:D]
Title: Help with color definition in .uhp skin files
Post by: aladyblond on January 02, 2006, 02:02:37 pm
ok we all use the eyelashes, i admit it, even me. yes they are a little too big but, hey a girl has to use whats available to her right? when you men solve the problem me and all of my girls will be greedily waiting to receive a new pair.thanks ~~ alady