问题 I'm using JGrasp, and in drawingPanel , I'm trying to create a ball that changes colors as it moves across the screen. Right now, I've got: for (int i = 10; i<=i; i++) { Color c = new Color(i*i, 0, 0); pen.setColor(c); My full simplified code is: import java.awt.*; import java.util.*; import java.awt.Color; public class BallSample { public static final int SIZE = 30; public static final int HALF = SIZE / 2; public static void main(String[] args) { Scanner console = new Scanner(System.in);