I was trying to find out what colors pass the particle. But the bottom right ind the image the particle passes through the white circle but in the log indicates a black color (00) instead of white (FF). Why???
Part of the code I’m using
// testApp::setup()
image.loadImage(“black.png”);
imagePixels = image.getPixels();
// testApp::update()
int readPos = (particle.pos.x * particle.pos.y) * 3;
unsigned char acc = imagePixels[readPos];
printf(“pos.x pos.y acc: %f %f %02X\n”, particle.pos.x, particle.pos.y, acc);
thanks for the help.
