forked from Galexyin/canvas
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.java
40 lines (37 loc) · 1.14 KB
/
test.java
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
class test{
public static void main(String[] args) {
shape s = new shape("rect.shape");
s.deleteShape();
s.saveShape();
shape ss = new shape("circle.shape");
ss.deleteShape();
ss.createCircle(0, 0, 5);
ss.saveShape();
objectX obj = new objectX("a.objectX");
obj.addCenter(0, 0);
obj.addShape(s);
obj.addNewFrame();
obj.selectFrame(1);
obj.addCenter(0, 0);
obj.addShape(ss);
obj.saveFrame();
obj.saveddad();
obj.saveObject("c.objectX");
canvas c = new canvas(100, 30,'x');
c.addObject(obj,"hello");
for(int i=0;i<10;i++){
c.drawObject("hello",1, 5, 5, '*');
c.display();
c.drawObject("hello",1, 5, 5, '*');
c.display();
obj.saveObject("c.objectX");
canvas c = new canvas(100, 30,'x');
c.addObject(obj,"hello");
for(int i=0;i<10;i++){
c.drawObject("hello",1, 5, 5, '*');
c.display();
c.drawObject("hello",1, 5, 5, '*');
c.display();
}
}
}