JSColor Class Reference
JSColor class provides functions for converting different color repersentations (HTML, RGB, INT) into each other.
More...
List of all members.
|
Public Member Functions |
void | JSColor () |
| Constructs JSColor class (empty).
|
Integer | rgbtoint (Integer red, Integer green, Integer blue) |
| Converts RGB color to INT color.
|
String | inttohtml (Integer rgb) |
| Converts INT color to HTML color.
|
Integer | htmltoint (String html) |
| Converts HTML color to INT color.
|
String | rgbtohtml (Integer red, Integer green, Integer blue) |
| Converts RGB color to HTML color.
|
Detailed Description
JSColor class provides functions for converting different color repersentations (HTML, RGB, INT) into each other.
All methods of this class could be used as "static".
Examples:
HTML: #000000 - black, #FFFFFF - white,
RGB: 0,0,0 - black, 255,255,255 - white,
INT: 0 - black, 16777215 - white.
Member Function Documentation
Integer JSColor::htmltoint |
( |
String |
html |
) |
[inline] |
|
|
Converts HTML color to INT color.
- Parameters:
-
- Returns:
- Color value.
|
String JSColor::inttohtml |
( |
Integer |
rgb |
) |
[inline] |
|
|
Converts INT color to HTML color.
- Parameters:
-
- Returns:
- HTML color.
|
String JSColor::rgbtohtml |
( |
Integer |
red, |
|
|
Integer |
green, |
|
|
Integer |
blue |
|
) |
[inline] |
|
|
Converts RGB color to HTML color.
- Parameters:
-
red | Red component of the color. |
green | Green component of the color. |
blue | Blue component of the color. |
- Returns:
- HTML color.
|
Integer JSColor::rgbtoint |
( |
Integer |
red, |
|
|
Integer |
green, |
|
|
Integer |
blue |
|
) |
[inline] |
|
|
Converts RGB color to INT color.
- Parameters:
-
red | Red component of the color. |
green | Green component of the color. |
blue | Blue component of the color. |
- Returns:
- Color value.
|
The documentation for this class was generated from the following file: