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 getByName: Difference between revisions

From Catglobe Wiki
Hovietluu (talk | contribs)
Created page with "Category:General_Functions {{HelpFiles}} ==== Color_getByName ==== To get RGB code of color '''Syntax''' Color_getByName(string colorName) '''Arguments''' sep..."
 
Hovietluu (talk | contribs)
No edit summary
Line 1: Line 1:
[[Category:General_Functions]]
{{HelpFiles}}
{{HelpFiles}}


==== Color_getByName ====
==== Color_getByName ====
Line 12: Line 11:
'''Arguments'''
'''Arguments'''


separator: is string
colorName: name of color
colorName: name of color


'''Return type'''
'''Return type'''


an array  
an array


'''Example'''
'''Example'''
Line 29: Line 27:
// result: {17,255,255,0}
// result: {17,255,255,0}


</source>
</source><br/>'''Availability'''
<br/>'''Availability'''


Version 5.8  
Version 5.8 <!-- imported from file: 8021.htm-->
<!-- imported from file: 8021.htm-->

Revision as of 10: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