Examples

 

 

Output Code
Hello! R RUL 10 1
RW LUA -120 1
REPEAT 3
RW LLA -90 0.3
RW LLA 90 0.3
END
A bow SD
SET KAKUDO 15 // Change this variable
R BODY KAKUDO
R LUL -KAKUDO
R RUL -KAKUDO
Sometimes hello!
R RUL 10 1
RW LUA -120 1
IF [RAND(1, 6) >= 4]
REPEAT 3
RW LLA -90 0.3
RW LLA 90 0.3
END
END
Draw athletic track SC 0.2
M -100 200
PEN DOWN
LT 90
REPEAT 2
REPEAT 180
FD 2
RT 1
W 0.02
END
REPEAT 100
FD 2
W 0.02
END
END

Watch your step


A
M -120 200
PEN DOWN
PENW 10
RT 90
FD 180
RT 90
FD 30
LT 90
FD 100
PEN UP
M -180 -120
SC 0.5
R BODY 45
R BODY 15 0.2
R LUA -120 0.2
R LLA 45 0.2
R RUA 45 0.2
R RLA 90 0.2
R LUL 20 0.2
R LLL -60 0.2
R RUL 45 0.2
R RLL -60 0.2

Watch your step (procedure version)


D slip
SC 0.5
R BODY 45
R BODY 15 0.2
R LUA -120 0.2
R LLA 45 0.2
R RUA 45 0.2
R RLA 90 0.2
R LUL 20 0.2
R LLL -60 0.2
R RUL 45 0.2
R RLL -60 0.2
END
D makeStep
M -120 200
PEN DOWN
PENW 10
RT 90
FD 180
RT 90
FD 30
LT 90
FD 100
PEN UP
M -180 -120
END
E makeStep
E slip

Robot dance

REPEAT 50
R LUA [RAND(-90, 90)] 0.2
RW RUA [RAND(-90, 90)] 0.2
END
Put arm down smoothly
R LUA -180
SET DR [3.6 - 0.018] REPEAT 100
RW LUA DR 0.02
SET DR [DR - 0.036]
Swing dance
R LUA -90
R RUA 60
SET DLUA 0
SET DLLA 0
SET DRUA 0
SET DRLA 0
REPEAT 500
SET DLUA [DLUA - COS(ANGLE("LUA"))] SET DLLA [DLLA - COS(ANGLE("LLA"))] SET DRUA [DRUA - COS(ANGLE("RUA"))] SET DRLA [DRLA - COS(ANGLE("RLA"))] R LUA DLUA 0.02
R LLA DLLA 0.02
R RUA DRUA 0.02
RW RLA DRLA 0.02
END
Family bond
S
M 70 -180
PEN DOWN
PEN ROUND
PENW 72
M 0 0 // draw head
PEN UP
M -40 60
PEN DOWN
PENW 36
M 0 176 // draw left arm
PEN UP
M 80 -176
PEN DOWN
M 0 176 // draw right arm
PENW 40
PEN UP
M -18 -16
PEN DOWN
M 0 200 // draw right leg
PEN UP
M -40 -200
PEN DOWN
M 0 200 // draw left leg
PEN UP
PEN SQUARE
PENW 80
M 20 -338
PEN DOWN
M 0 160 // draw body
PEN UP
M -120 40
SC 0.5
R RUA 40 1
R RLA 120 1