Powermill

A little program shows the effect of wind power

-- Use this function to perform your initial setup
function setup()
    print("Powermill")
    iparameter("Tempo",100,255)
end

-- This function gets called once every frame
function draw()
    -- This sets a dark background color 
    background(0)
    stroke(0, 0, 0, 93)
    fill(Tempo, Tempo, 150, Tempo)
    sprite("Cargo Bot:Stop Button",WIDTH/2,200,200,700)
    for i = 1,6 do
        ellipse(110 * i,600,70,70)
    end
    fill(255)
    fontSize(48)
    text(Tempo .." Volt",WIDTH/2, 700)
    pushMatrix()
 -- This sets the line thickness
    strokeWidth(1)
    stroke(255, 255, 255, 255)
    fill(113, 97, 97, 255)
    translate(WIDTH/2, HEIGHT/2)
    rotate(ElapsedTime * Tempo)
        ellipse(0,0,50,350)
        ellipse(0,0,350,50)
        fill(164, 53, 53, 255)
        ellipse(0,0,60,60)
    popMatrix()
end