Custom Colours
You can define any colour you like in Clarity. You may have used one of the colour palette dialogue boxes to come up with new colours, but you can also specify them in code if you know the Red/Green/Blue (RGB) values of the colour – red, green and blue being the primary colours of the spectrum of light. The RGB function takes three integer parameters, one for each colour, from 0-255 indicating the intensity of that colour. So RGB(0,0,0) is black (no light of any colour) and RGB(255,255,255) is white (full intensity of red, green and blue).
You can use a custom colour in the following way:
|
Label1.Font.Color := RGB(200, 0, 0); { a relatively bright red colour } Label2.Font.Color := RGB(100, 200, 100); { a pale green colour } Label3.Font.Color := RGB(0, 0, 80); { a deep blue colour } |