module Common
Public Instance Methods
alert(message)
click to toggle source
# File lib/app.rb, line 18 def alert(message) $window.alert(message) end
black()
click to toggle source
# File lib/app.rb, line 22 def black $p.background(1) end
ink_setup()
click to toggle source
# File lib/app.rb, line 12 def ink_setup $window = Native(`window`) # Get Page Window $p = $window.p #Set global Processing hook end
over?(x,y,l,h)
click to toggle source
Check if point is over given rectangle
# File lib/app.rb, line 27 def over?(x,y,l,h) true if $p.mouseX >= x && $p.mouseX <= l+x && $p.mouseY >= y && $p.mouseY <= h+y end