I was in a project yesterday and gave a circle a negative value. The result was a cool shape, so I figured I would share a small project showcasing the result.
function setup()
print("Hello World!")
x = 0
pos = vec2(WIDTH/2,HEIGHT/2)
parameter.integer("size",20,400,225)
end
-- This function gets called once every frame
function draw()
-- This sets a dark background color
background(0, 0, 0, 255)
fill(255, 81, 0, 255)
translate(pos.x,pos.y)
blendMode(ADDITIVE)
pushMatrix()
rotate(x)
ellipse(0,0,-1*size)
popMatrix()
fill(0, 153, 255, 255)
pushMatrix()
rotate(2*x)
ellipse(0,0,-1*size)
popMatrix()
x = x + 0.75
end
function touched(t)
pos.x = t.x
pos.y = t.y
end