dupa

Author Topic: Help with color definition in .uhp skin files  (Read 4299 times)

versionfour

  • Newbie
  • *
  • Posts: 43
    • View Profile
Help with color definition in .uhp skin files
« 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
« Last Edit: December 31, 2005, 07:08:16 pm by versionfour »
 

Carl2

  • Hero Member
  • *****
  • Posts: 1220
    • View Profile
Help with color definition in .uhp skin files
« Reply #1 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
 

freddy888

  • Hero Member
  • *****
  • Posts: 1693
    • View Profile
    • AiDreams
Help with color definition in .uhp skin files
« Reply #2 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

versionfour

  • Newbie
  • *
  • Posts: 43
    • View Profile
Help with color definition in .uhp skin files
« Reply #3 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.
« Last Edit: January 02, 2006, 06:24:14 am by versionfour »
 

Dr.Benway

  • Hero Member
  • *****
  • Posts: 554
    • View Profile
Help with color definition in .uhp skin files
« Reply #4 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]
« Last Edit: January 02, 2006, 10:45:09 am by Dr.Benway »

aladyblond

  • Hero Member
  • *****
  • Posts: 1499
    • View Profile
Help with color definition in .uhp skin files
« Reply #5 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
~~~if i only had a brain~~~ i dream of htr with the light brown hair....