Skip to content

Instantly share code, notes, and snippets.

@jamesmichiemo
Last active September 22, 2018 18:37
Show Gist options
  • Select an option

  • Save jamesmichiemo/1fcdbf8a2d0e302e3fd2605a6959614d to your computer and use it in GitHub Desktop.

Select an option

Save jamesmichiemo/1fcdbf8a2d0e302e3fd2605a6959614d to your computer and use it in GitHub Desktop.
02_make::projects:processing
require 'propane'
# ellipses
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class Ellipse < Propane::App
def settings
size 100, 100
end
def draw
ellipse(50,50,80,80)
end
end
Ellipse.new
#!/usr/bin/env jruby
require 'propane'
# make circles
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class MakeCircles < Propane::App
def settings
size 480,120
end
def draw
if mouse_pressed?
fill(0)
else
fill(255)
end
ellipse(mouseX, mouseY, 80, 80)
end
end
MakeCircles.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment