Difference between revisions of "Color.rgb"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "In Mini Micro, the <c>color.rgb</c> method returns a color string from red, green, and blue values in the range 0-255. === Arguments === {| class="wikitable" |-...")
 
(No difference)

Latest revision as of 03:53, 24 January 2021

In Mini Micro, the color.rgb method returns a color string from red, green, and blue 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)

All parameters are required. The result is a 7-character color string without alpha.

See also: color.rgba

Example

print color.rgba(50,100,200)

Output:

 #3264C8