The flag of India is 306 by 204. The orange, white and green stripes
are 306 by 67. The wheel has radius 30.
The flag of India includes a wheel with 24 spokes, the spokes are
2*pi/24 radians apart.
The code given draws only three of the spokes - we could copy and paste -
but it would be much better to use a loop.
We have not really done India justice here - the actual flag is much more
elegant, the spokes taper and the rim includes decoration.
Nevertheless - we apologize to the sub-continent and move on.
Look at the original program
g.setColor(Color.yellow);
for (int i=0;i<9;i++){
double a = Math.PI*2*i/9;
g.translate( 100*Math.cos(a), 100*Math.sin(a));
g.fillPolygon(star);
g.translate(-100*Math.cos(a),-100*Math.sin(a));
}
*The circle of stars is currently centered at the origin.
**You can move this by adding a translate call after the setColor line
g.translate(100,100);
*The number of stars filled is 9; you want 12
**Change this number in the for line
**Change this number in the calculation of the angle a
*The radius of the circle of stars is 100; you want it to be 64
**The number 100 shows up in the translate methods four times