(int change)
| 699 | } |
| 700 | |
| 701 | protected void rotate(int change) { |
| 702 | int newRotate = rotate + change; |
| 703 | while (newRotate < 0) newRotate += 360; |
| 704 | while (newRotate >= 360) newRotate -= 360; |
| 705 | |
| 706 | if (newRotate - rotate == 0) |
| 707 | return; |
| 708 | rotate = newRotate; |
| 709 | |
| 710 | render(); |
| 711 | } |
| 712 | |
| 713 | protected void toggleAntiAlias() { |
| 714 | int newAntialias = number != 0 ? number : (antialias == 8 ? 0 : 8); |
no test coverage detected