-
Notifications
You must be signed in to change notification settings - Fork 9
/
draw.js
82 lines (71 loc) · 954 Bytes
/
draw.js
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// Write your code here
// Do not Import anything
/*
* Your contribution should ideally be like this
* Try to leave no gaps so that no one can mess with your code :)
*
* // BEGIN : YOURNAME
* code()
* ...
* // END : YOURNAME
*/
function square(side) {
repeat(4, function () {
forward(side);
right(90);
});
}
//
// BEgin: Madhav
square(100)
goto(100,100)
square(100)
// End : madhav
//Begin: Joshua
penup()
left(90)
forward(300)
pendown()
right(180)
forward(60)
left(90)
forward(100)
left(90)
forward(80)
right(180)
forward(160)
hideTurtle()
//End: Joshua
//Begin: Kishandev
penup()
forward(10)
right(90)
pendown()
left(90)
forward(10)
left(90)
forward(10)
penup()
left(180)
forward(300)
pendown()
forward(50)
left(90)
forward(50)
left(90)
forward(50)
left(90)
forward(50)
left(90)
//End: Kishandev
//Begin: aksbombsrs
penup()
forward(60)
pendown()
left(90)
forward(60)
left(90)
backward(60)
right(60)
forward(60)
left(90)