Name

green()

Examples
c = color(20, 75, 200)  # Define color 'c'
fill(c)  # Use color variable 'c' as fill color
rect(15, 20, 35, 60)  # Draw left rectangle
greenValue = green(c)  # Get green in 'c'
print(greenValue)  # Print "75.0"
fill(0, greenValue, 0)  # Use 'greenValue' in fill
rect(50, 20, 35, 60)  # Draw right rectangle
Description
Syntax
green(rgb)
Parameters
rgb
Related red()
blue()
alpha()
hue()
saturation()
brightness()
>> (right shift)
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License