Name

red()

Examples
c = color(255, 204, 0)  # Define color 'c'
fill(c)  # Use color variable 'c' as fill color
rect(15, 20, 35, 60)  # Draw left rectangle

redValue = red(c)  # Get red in 'c'
print(redValue)  # Print "255.0"
fill(redValue, 0, 0)  # Use 'redValue' in fill
rect(50, 20, 35, 60)  # Draw right rectangle
Description
Syntax
red(rgb)
Parameters
rgb
Related green()
blue()
alpha()
hue()
saturation()
brightness()
>> (right shift)
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License