Seed7 - The extensible programming language
Seed7 FAQ Manual Screenshots Examples Libraries Algorithms Download Links
Libraries AES ARC4 Array ASN.1 Bigfile Bigint Bigrat Bin32 Bin64 Bitdata Bitmapfont Bitset Bitsetof Boolean Browser Bstring Bytedata Cards Category CC config Cgi Cgi dialog Char Charsets Cipher Clib_file Color CLI Commands Complex Console Crc32 Deflate DES Dialog Dir Draw Duration Echo Editline Enable_input Enable_io Enable_output Encoding Environment External_file File File system Float Font Forloop Ftp Getf Gethttp Gethttps Graph Graph_file Gzip Hash Hashsetof Hmac Html_ent Httpserv Idxarray Image Inflate Inflate file Inifile Integer Keybd Line Listener LZW Make Math Msgdigest Null_file Osfiles Picture utility Pixmap_file Pixmapfont PKCS #1 Poll Process Progs Propertyfile Rational Reference Ref_list Scanfile Scanstri Set Shell Smtp Sockbase Socket SQL base Stdio Strifile String Stritext Subrange Tar Text Time TLS/SSL Triple DES Unicode Utf16 Utf8 Vectorfont 3D Vector Window Wrinum X.509 Xmldom Xml_ent Zip
Libraries
Color Source Code
 previous   up   next 

Types
color
Describes colors with red, green and blue.

color

const type: color

Describes colors with red, green and blue.


Operator Summary
boolean
(in color: col1) = (in color: col2)
Check if two color values are equal.
boolean
(in color: col1) <> (in color: col2)
Check if two color values are not equal.
color
(in color: col1) + (in color: col2)
Add two colors in an additive color system.

Function Summary
color
color (in integer: red, in integer: green, in integer: blue)
Create a color value from the red, green and blue parts.
color
gray (in integer: brightness)
Create a gray color value from the brightness.
integer
compare (in color: col1, in color: col2)
Compares two colors.
integer
hashCode (in color: col)
Compute the hash value of a color.

Operator Detail

=

const func boolean: (in color: col1) = (in color: col2)

Check if two color values are equal.

Returns:
TRUE if both values are equal, FALSE otherwise.

<>

const func boolean: (in color: col1) <> (in color: col2)

Check if two color values are not equal.

Returns:
FALSE if both values are equal, TRUE otherwise.

+

const func color: (in color: col1) + (in color: col2)

Add two colors in an additive color system.

Returns:
the sum of the two colors.

Function Detail

color

const func color: color (in integer: red, in integer: green, in integer: blue)

Create a color value from the red, green and blue parts.

Returns:
the created color value.

gray

const func color: gray (in integer: brightness)

Create a gray color value from the brightness.

Returns:
the created color value.

compare

const func integer: compare (in color: col1, in color: col2)

Compares two colors.

Returns:
-1, 0 or 1 if the first argument is considered to be respectively less than, equal to, or greater than the second.

hashCode

const func integer: hashCode (in color: col)

Compute the hash value of a color.

Returns:
the hash value.


 previous   up   next