get() function help
in
Programming Questions
•
2 years ago
Hey, im working on trying to use a get() function within an IF statement to detect a pixels colour,
The code that looks like this..
if( get(x)(y+0.1) != color(0) ){ //check for pixel below particle y to not equal the color black
speed = 0; //If the pixel isn't black speed = 0
This IF statement isn't working.
Does anyone knows how to use the get() function correctly? or instead, recommend a better function to use to check a pixels colour that would help alot.
Thanks.
1