Tile - YColor - Color – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(One intermediate revision by one other user not shown)
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 ===


Allows to define a new '''color''' with '''number''' values.
Returns new '''color''' as defined by RGB values.




----
----
{{Navbox/Ylands}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]

Latest revision as of 15:26, 24 November 2023

Color(Red, Green, Blue, Alpha)

YlandsTile-562.png

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

Client, Server

Description

Returns new color as defined by RGB values.