We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I am trying to new to translating and rotating, so that might be my problem. Here is the code snippet that is causing the error:
translate(width/2 +35, height/2 +48);
rotate(randomRotate);
copy(cards, 73*x + 1, 98*y + 1, 71, 96, -35,-48, 71, 96);
loadPixels();
copy(-35, -48, 71, 96, 1, 1, 71, 96);
I am getting the error on the second copy command. I have tried changing the values of the copy command, but it doesn't seem to work. Can I not copy from the screen after it has been translated? Or is there something else I am doing wrong?
Thanks, ~Mikeshiny
Answers
can you have -ve numbers in copy ()?
It is an error from the Java2D rendering system, so I guess it doesn't like copy() after transformations...