Regresar

--[[

  ----------------------------------------------------------
  Mosaic | OF Visual Patching Developer Platform

  Copyright (c) 2018 Emanuele Mazza aka n3m3da

  See https://github.com/d3cod3/Mosaic for documentation
  ----------------------------------------------------------

  Video y anális audio con script Lua 
  Created by Miguel Corell

]]


mouseX = 0
mouseY = 0

-- reticula
inc = 10

----------------------------------------------------
function setup()

end

----------------------------------------------------
function update()

end

----------------------------------------------------
function draw()
  of.setColor(0) --- fondo negro opaco
  of.drawRectangle(0,0,1280,720)

  of.setColor(255, 255, 255, 50)
  w= OUTPUT_WIDTH / 128
  for k,v in pairs(_mosaic_data_table) do
    of.drawEllipse(w*8*k, OUTPUT_HEIGHT-100, w*3, -(_mosaic_data_table[k]*200))
  end     --- Elipses análisis audio

  of.noFill()
  for i = 0,OUTPUT_WIDTH, inc do
    for j = 0, OUTPUT_HEIGHT, inc do
      of.drawCircle(i+inc, j+inc, inc)
    end    --- Retícula
  end
end

----------------------------------------------------
function exit()

end

-- input callbacks

----------------------------------------------------