|
RGBA Color Codes 2 Years, 11 Months ago
|
|
|
Is there some kind of swatch or graph or similar I can refer to so I can cut out the trial and error when it comes to altering the text color codes in the skin?
Or, is there something that also explains the RGBA color code used in the Rainlendar skins.
|
|
|
|
Cheers,
Keith
|
|
|
Re: RGBA Color Codes 2 Years, 11 Months ago
|
|
There are probably a million websites which explain the RGB colors (the A is transparency). Here's one of the first hits from Google: www.tayloredmktg.com/rgb/
|
|
Rainy
Moderator
Posts: 5359
|
|
|
|
|
Re: RGBA Color Codes 2 Years, 11 Months ago
|
|
|
I did do a good search Rainy but things were not adding up. Everywhere I looked the RGB codes were all 3 sets of 3 numbers, eg: 200-200-200. My understanding of the transparency (RGBa) was 0 - 1.0 eg: 200-200-200-0.4
However, Rainlendars colors are depicted thus:
<colors>
<color id="color.holiday" rgba="255,255,0,255" />
<color id="color.important" rgba="255,130,130,255" />
<color id="color.issues" rgba="255,200,200,255" />
<color id="color.misc" rgba="200,200,255,255" />
<color id="color.personal" rgba="255,200,255,255" />
<color id="color.status" rgba="0,255,255,255" />
<color id="color.edit.text" rgba="100,200,250" hue="%Color%" />
<color id="color.edit.info" rgba="35,95,155" hue="%Color%" />
<color id="color.edit.bg" rgba="20,40,60" hue="%Color%" />
</colors>
Am I missing something, could you explain please?
|
|
|
|
Cheers,
Keith
|
|
|
Re: RGBA Color Codes 2 Years, 11 Months ago
|
|
|
The A (alpha) is a value from 0 (fully transparent) to 255 (opaque).
|
|
Rainy
Moderator
Posts: 5359
|
|
|
|
|
Re: RGBA Color Codes 2 Years, 11 Months ago
|
|
|
I must have misread the Alpha part but I'm still a little confused.
If the code is depicted thus:
R......G......B.....A
100-100-100-50
Am I correct in thinking the last (or fourth) set of digits is the transparency/opacity code and the first 3 (RGB) the color code?
I ask because I tested the colors in Rainlendar with just 3 sets of digits and it worked ok.
|
|
|
|
Cheers,
Keith
|
|
|
Re:RGBA Color Codes 2 Years, 11 Months ago
|
|
255,255,255,255
Red,Green,Blue,Alpha
* you must put a , not a - between numbers.
Ex: Green is : 0,255,30,255
Remember the last numbers are for the transparency...255 being opaque.
Sheers 
|
|
|
|
|
|
|