Drawing with Iterations

Drawing #1

var itera = 0

onevent temperature #Thymio updates temperature value at once per second.  You can replace this line with the following two to change time intervals
#timer.period[0] = 1000
#onevent timer0 
itera = itera + 1
if itera==1 then
    motor.left.target = 230
    motor.right.target = -120
end
if itera==4 then
    motor.left.target = 80
    motor.right.target = 80
end
if itera==7 then
    itera = 0
end

flower drawing
Drawing #2

var itera = 0

onevent temperature
itera = itera + 1
if itera==1 then
    motor.left.target = 100
    motor.right.target = 90
end
if itera==4 then
    motor.left.target = -100
    motor.right.target = -70
end
if itera==7 then
    itera = 0
end

pattern 2