Toggle menu
876
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Color getByRGB: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
No edit summary
Line 1: Line 1:
[[Category:Style setting functions]]
[[Category:Style setting functions]]

{{HelpFiles}}


=====Color_getByRGB=====
=====Color_getByRGB=====

Revision as of 10:13, 12 December 2011



Color_getByRGB

This function creates a color object that can be used in some of the other chart style setting functions.

Syntax

Color_getByRGB(number1, number2, number3)

Color_getByRGB(“hexadecimal”)

Arguments

number1, number2, number3: numbers (from 0 to 255) for red color, green color and blue color.

hexadecimal: is a hexadecimal value describing a color (a string).

Return type

Returns the following array

Constant

Type

Initial/Default value

Description

OBJECT_TYPE

Number

17

Enumeration for the type of object.

COLOR_RED

Number

As set in function

Color code between 0 and 255

COLOR_GREEN

Number

As set in function

Color code between 0 and 255

COLOR_BLUE

Number

As set in function

Color code between 0 and 255

Examples

array fill = Color_getByRGB(255, 255, 0); // Yellow

array fill = Color_getByRGB(“#000000”); // Black

Availability

Version 5.8.1