
--[[ ---------------------------------------------------------- Mosaic | OF Visual Patching Developer Platform See https://github.com/d3cod3/Mosaic for documentation ---------------------------------------------------------- Condicional and random: A Lua script example for Mosaic, created by Nevena Atanasova ]] mouseX = 0 mouseY = 0 ic=0 ---------------------------------------------------- function setup() of.setCircleResolution(120) end ---------------------------------------------------- function update() if ic< OUTPUT_WIDTH then ic=ic+1 else ic=0 end end ---------------------------------------------------- function draw() of.setColor(0, 0, 0, 20) -- Fondo of.drawRectangle(0, 0, OUTPUT_WIDTH, OUTPUT_HEIGHT) of.setColor(200,10,80,50) of.drawCircle(of.random(100,1000), of.random (100,800), of.random(90,130)) of.setColor(10,200,100, 95) of.drawCircle(of.random(0,100)+ic, of.random (100,800), of.random(1,30)) of.noFill() of.setColor(10,20,240, 80) of.drawCircle(OUTPUT_WIDTH/2, OUTPUT_HEIGHT/2, 20+ic) of.noFill() of.setColor(10,200,200, 60) of.drawCircle(OUTPUT_WIDTH/2, OUTPUT_HEIGHT/2, 4*ic) end