def setup
createCanvas(100, 100, WEBGL)
# setAttributes('antialias', true)
frustum(-0.1, 0.1, -0.1, 0.1, 0.1, 200)
end
def draw
background(200)
# orbitControl
normalMaterial
rotateY(-0.2)
rotateX(-0.3)
push do
translate(-15, 0, sin(frameCount / 30) * 25)
box(30)
end
push do
translate(15, 0, sin(frameCount / 30 + PI) * 25)
box(30)
end
end