Page 1 of 1 1
Topic Options
#38633 - 2003-04-01 04:09 PM Code For Colours!
Billy Offline
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 Offline
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 Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Yes there is actually, but be aware that kixforms uses the BBGGRR schema (and not RRGGBB)

As well you can use some (255 ?) color names like
$form.BackColor = "Blue" (additionally some easter egg ones like 'kixtart' [Wink] )

For reference consult either the CHM file on kixforms.org or maybe Shawn's Kixtart PiXasso Painter to be found here

Hey, and checkout my signature below [Razz]

[ 01. April 2003, 16:32: Message edited by: jpols ]
_________________________



Top
#38636 - 2003-04-01 04:28 PM Re: Code For Colours!
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
... therefore &FF0000 is not Red but Blue [Wink]
_________________________



Top
#38637 - 2003-04-01 04:31 PM Re: Code For Colours!
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Jens,

still &00FF00 is green [Big Grin]

{edit}
Now I got also confused [Roll Eyes]
Rule of thumb: Swap the first Byte with the last and leave the 'middle' one unchanged
{/edit}

[ 01. April 2003, 16:36: Message edited by: jpols ]
_________________________



Top
#38638 - 2003-04-01 04:35 PM Re: Code For Colours!
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Does that pass muster now?
_________________________
There are two types of vessels, submarines and targets.

Top
#38639 - 2003-04-01 04:40 PM Re: Code For Colours!
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
If you mean what I understand ... Yes, now there should be consistency in all replies [Smile]
_________________________



Top
#38640 - 2003-04-01 05:00 PM Re: Code For Colours!
Shawn Administrator Offline
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. Offline
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
#38642 - 2003-04-01 05:07 PM Re: Code For Colours!
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
I gave Jochen the WIP CHM.
Top
#38643 - 2003-04-02 08:00 AM Re: Code For Colours!
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Oh damn ... I thought I had it downloaded from there [Confused]

(Not the one you gave me 2 days ago Shawn)
_________________________



Top
#38644 - 2003-04-02 10:28 AM Re: Code For Colours!
Billy Offline
Fresh Scripter

Registered: 2002-11-06
Posts: 34
Loc: Birmingham, England
Thanx for the help, much appreciated.
Top
#38645 - 2003-04-02 11:10 PM Re: Code For Colours!
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Oh yeah ... forgot to mention Billy, If you ever come to the point where you have to translate colors from BBGGRR to RRGGBB and vice versa this is already coded within PostPrep (see btnConvert_Click() and especially Color_Change($i,$l) )

If a bit advertising on own bill is allowed [Roll Eyes]
_________________________



Top
#38646 - 2003-04-10 12:57 AM Re: Code For Colours!
MCA Offline
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.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 869 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.144 seconds in which 0.106 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org