-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathRB15.java
More file actions
50 lines (50 loc) · 881 Bytes
/
Copy pathRB15.java
File metadata and controls
50 lines (50 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// APPLETS //
import java.awt.*;
import java.applet.*;
public class RB15 extends Applet
{
int a,b,c,d;
public void init()
{
b = -269;
c = d = 1;
}
public void paint(Graphics g)
{
g.setColor(Color.red);
g.fillOval(100,100,600,600);
g.setColor(Color.orange);
for(int e = -269;e >= -629 ;e -= 6)
{
g.fillArc(100,100,600,600,e,2);
}
while(d <= 134)
{
d++;
if(b == -629)
{
b = -269;
c++;
}
if(c % 2 == 0)
{
g.setColor(Color.blue);
}
else
{
g.setColor(Color.green);
}
g.fillArc(100,100,600,600,b,2);
for(a = 1;a <= 24000;a++)
{
g.fillOval(96,96,8,8);
g.fillOval(696,96,8,8);
g.fillOval(96,696,8,8);
g.fillOval(696,696,8,8);
}
g.setColor(Color.orange);
g.fillArc(100,100,600,600,b,2);
b -= 6;
}
}
}