--[[ ---------------------------------------------------------- Mosaic | OF Visual Patching Developer Platform See https://github.com/d3cod3/Mosaic for documentation ---------------------------------------------------------- Estructura Condicional Created by Nico Astengo ]] mouseX = 0 mouseY = 0 i = 0 ---------------------------------------------------- function setup() end ---------------------------------------------------- function update() if i < OUTPUT_WIDTH then i = i+1 else i = 0 end end ---------------------------------------------------- function draw() -- of.setColor(255) -- fondo anulado -- of.drawRectangle(0, 0, OUTPUT_WIDTH, OUTPUT_HEIGHT) of.setLineWidth(12) r = math.ceil(of.random(255)) g = math.ceil(of.random(200)) b = math.ceil(of.random(50)) of.setColor(r, g, b, 50) of.drawLine(i, 0, of.random(OUTPUT_WIDTH), OUTPUT_HEIGHT) end ---------------------------------------------------- function exit() end -- input callbacks ----------------------------------------------------