#38633 - 2003-04-01 04:09 PM
Code For Colours!
|
Billy
Fresh Scripter
Registered: 2002-11-06
Posts: 34
Loc: Birmingham, England
|
Does anyone know the code for the different colours in kixforms. I know &005500 is Dark Green and &00ffff is Yellow but no others.
Thanx
|
|
Top
|
|
|
|
#38634 - 2003-04-01 04:18 PM
Re: Code For Colours!
|
Sealeopard
KiX Master
   
Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
|
The codes follow the BGR convention, 0-255 for RED, 0-255 for BLUE, 0-255 for GREEN, thus FFFFFF = WHITE, FF0000 for BLUE, 00FF00 for GREEN, 0000FF for RED. A list of standard colors is available here: http://www.keller.com/html-quickref/4a.html. You just need to translate them from RGB to BGR. [ 01. April 2003, 16:34: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.
|
|
Top
|
|
|
|
#38635 - 2003-04-01 04:21 PM
Re: Code For Colours!
|
Jochen
KiX Supporter
   
Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
|
|
|
Top
|
|
|
|
#38637 - 2003-04-01 04:31 PM
Re: Code For Colours!
|
Jochen
KiX Supporter
   
Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
|
|
|
Top
|
|
|
|
#38640 - 2003-04-01 05:00 PM
Re: Code For Colours!
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
I still to this day kick my own ass for using the BBGGRR format. I left it like that because native Windows and Visual Basic uses that. Dotnet and HTML use RRGGBB ... there's a whole whack of ways to specify a color in Kixforms, eg:
code:
$Form.BackColor = 256 ; decimal $Form.BackColor = &00FF00 ; hex BBGGRR $Form.BackColor = 0,255,0 ; RGB array $Form.BackColor = $Form.RGB(0,255,0) ; RGB Funcion $Form.BackColor = "ColorName"
The preferred method is to use the RGB Array syntax or the ColorName if you know what it is. In Jen's link, all those color names outlined can be plugged into Kixforms directly, eg:
code:
$Form.BackColor = "MintCream"
-Shawn
|
|
Top
|
|
|
|
#38641 - 2003-04-01 05:05 PM
Re: Code For Colours!
|
Chris S.
MM club member
   
Registered: 2002-03-18
Posts: 2368
Loc: Earth
|
Jochen, correct me if I'm wrong, but I don't think the KiXforms CHM is available for download from www.kixforms.org yet. [ 01. April 2003, 17:06: Message edited by: Chris S. ]
|
|
Top
|
|
|
|
#38644 - 2003-04-02 10:28 AM
Re: Code For Colours!
|
Billy
Fresh Scripter
Registered: 2002-11-06
Posts: 34
Loc: Birmingham, England
|
Thanx for the help, much appreciated.
|
|
Top
|
|
|
|
#38646 - 2003-04-10 12:57 AM
Re: Code For Colours!
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,
Sometimes it can be hard to find those HTML colorsettings back. On the internet we find the tool ColorSpy.
Description: quote:
ColorSPY is a 32 bit Windows application for obtaining color codes anywhere on your screen under the current mouse position. See a color you like, want to know the color code needed to reproduce it. Be it HTML, RGB, Delphi, Visual C++ or Visual Basic, ColorSPY knows and shows them all. Just point your mouse at it and there's your code. Want to know if this color is browser safe, ColorSPY can help you with this too! Recent enhancements include Color Palette Picker and color Eye Dropper for picking up colors and copying the appropriate color code to the Windows clipboard for pasting into your IDE or editor.
Just click ColorSpy to download this program (size +/- 300 KB).
For Kixforms you need to convert these hexadecimal values. greetings.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 869 anonymous users online.
|
|
|