This example show how to use the trigger areas utility from GAmuza Computer Vision panel.
/*
GAmuza 0.4.1 examples
---------------------
ComputerVision/triggerAreas.ga
This example show how to use the trigger area utility from GAmuza
videotracking panel.
created by n3m3da | www.d3cod3.org
*/
function setup()
// generate a brown noise
ga.wave(GA_BROWN,10.0)
end
function update()
end
function draw()
ga.background(0.0,1.0)
// mute and unmute the brown noise with the trigger area 0 of device 0
// ga.camTrigger(device,area)
if ga.camTrigger(0,0) then
ga.waveVolume(0,0.8)
else
ga.waveVolume(0,0.0)
end
end
GAmuza 0.4.1 examples
---------------------
ComputerVision/triggerAreas.ga
This example show how to use the trigger area utility from GAmuza
videotracking panel.
created by n3m3da | www.d3cod3.org
*/
function setup()
// generate a brown noise
ga.wave(GA_BROWN,10.0)
end
function update()
end
function draw()
ga.background(0.0,1.0)
// mute and unmute the brown noise with the trigger area 0 of device 0
// ga.camTrigger(device,area)
if ga.camTrigger(0,0) then
ga.waveVolume(0,0.8)
else
ga.waveVolume(0,0.0)
end
end

sending...