color c1 = color(0, 126, 255); // Create a new color
float r = red(c1); // Assign 0.0 to r
float g = green(c1); // Assign 126.0 to g
float b = blue(c1); // Assign 255.0 to b
println(r + ", " + g + ", " + b); // Prints "0.0, 126.0, 255.0"
color c2 = color(102); // Create a new gray value
float r2 = red(c2); // Assign 102.0 to r2
float g2 = green(c2); // Assign 102.0 to g2
float b2 = blue(c2); // Assign 102.0 to b2
println(r2 + ", " + g2 + ", " + b2); // Prints "102.0, 102.0, 102.0"