Name

blue()

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