Difference between revisions of "Color getByName"

From Catglobe Wiki
Jump to: navigation, search
(Created page with "Category:General_Functions {{HelpFiles}} ==== Color_getByName ==== To get RGB code of color '''Syntax''' Color_getByName(string colorName) '''Arguments''' sep...")
 
 
(One intermediate revision by the same user not shown)
Line 12: Line 12:
 
'''Arguments'''
 
'''Arguments'''
  
separator: is string
 
 
colorName: name of color
 
colorName: name of color
  

Latest revision as of 11:09, 11 November 2016



Color_getByName

To get RGB code of color

Syntax

Color_getByName(string colorName)

Arguments

colorName: name of color

Return type

an array

Example

print(Color_getByName("white"));
// result: {17,255,255,255}
print(Color_getByName("red"));
// result: {17,255,0,0}
print(Color_getByName("yellow"));
// result: {17,255,255,0}


Availability

Version 5.8