$pic.R "LUA", 90, 1
$pic.RW "LUA", 90, 1
$pic.M 50, 100, 1
$pic.MW 50, 100, 1
$pic.SAYW "Hello!", 1
$pic.W 1
LUA
LLA
RUA
RLA
LUL
LLL
RUL
RLL
BODY
HEAD
$pic.SC 0.1
$pic.FR
$pic.SD
$pic.C
$pic.PEN_RELEASE
$pic.PEN_HOLD
$pic.PEN_ROUND
$pic.PEN_SQUARE
$pic.PEN_BUTT
$pic.PENW 10
$pic.L 100, 0, 300, 200
$pic.O 100, 0, 50, 150, 0
$pic.ST
$pic.CS
$pic.P
$pic.A
$pic.I
$pic.S
$pic.SK
$pic.SG
$pic.SR
$pic.N
3.times do
if rand(10) < 5 then
angle = 60
order = ['LUA', 'RUA', 'LUL', 'RUL']
def name()
val = input "input string"
print "output string"
:
Ruby