Promblem with if statement for pixel color
in
Programming Questions
•
1 years ago
Hi,
I want to draw rectangle if the pixel is white. And do nothing when the pixel is not white.
Do you have idea how to formulate if statement?
color cp = get(30, 20);
fill(cp);
if ( color(255, 255, 255)){
rect(30, 20, 55, 55);
}
Thank you.
I want to draw rectangle if the pixel is white. And do nothing when the pixel is not white.
Do you have idea how to formulate if statement?
color cp = get(30, 20);
fill(cp);
if ( color(255, 255, 255)){
rect(30, 20, 55, 55);
}
Thank you.
1