Color.rgba

From MiniScript Wiki
Revision as of 03:52, 24 January 2021 by JoeStrout (talk | contribs) (Created page with "In Mini Micro, the <c>color.rgba</c> method returns a color string from red, green, blue, and alpha values in the range 0-255. === Arguments === {| class="wikita...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In Mini Micro, the color.rgba method returns a color string from red, green, blue, and alpha values in the range 0-255.

Arguments

Parameter Name Meaning
r red component (0-255)
g green component (0-255)
b blue component (0-255)
a alpha component (0-255)

All parameters are required.

See also: color.rgb

Example

print color.rgba(50,100,200,255)

Output:

 #3264C8FF