let draw_sin = (yOffset.
let xOffset = 500
let multiplier = 100
let step = 10
let x = (i. i*step-xOffset)
let y = (i. (sin i*step)*multiplier-yOffset)
up (goto (x 0) (y 0))
repeat 100 (i.
goto (x i) (y i)
)
)
pen color:red pattern:leafs
draw_sin (-200)
pen color:yellow pattern:stars
draw_sin (-100)
pen color:green pattern:hearts
draw_sin 0
pen color:darkblue pattern:cars
draw_sin 100
pen color:orange pattern:crabs
draw_sin 200