Tile - YColor - Color – Ylands
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
==== r ==== | ==== r ==== | ||
Red component of the color (0-255) | |||
==== g ==== | ==== g ==== | ||
Green component of the color (0-255) | |||
==== b ==== | ==== b ==== | ||
Blue component of the color (0-255) | |||
==== a ==== | ==== a ==== | ||
Line 20: | Line 26: | ||
'''YColor''' | '''YColor''' | ||
=== Availability === | |||
[[Ylands:Tile Availability - Client|Client]], [[Ylands:Tile Availability - Server|Server]] | |||
=== Description === | === Description === | ||
Returns new '''color''' as defined by RGB values. | |||
Revision as of 12:17, 12 November 2021
Color(Red, Green, Blue, Alpha)
static create(r: number, g: number, b: number, a: number): YColor;
Parameters
r
Red component of the color (0-255)
g
Green component of the color (0-255)
b
Blue component of the color (0-255)
a
Returns
YColor
Availability
Description
Returns new color as defined by RGB values.