Skip to content

Instantly share code, notes, and snippets.

@jamesmichiemo
Created June 15, 2019 18:36
Show Gist options
  • Select an option

  • Save jamesmichiemo/055887a3266857eb7c24f5193155eb7d to your computer and use it in GitHub Desktop.

Select an option

Save jamesmichiemo/055887a3266857eb7c24f5193155eb7d to your computer and use it in GitHub Desktop.
propane sketch
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'propane'
# ellipse
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class Ellipse < Propane::App
def settings
size 480, 120
end
def setup
sketch_title 'Ellipse'
end
def draw
ellipse 278, -100, 400, 400
ellipse 120, 100, 110, 110
ellipse 412, 60, 18, 18
end
end
Ellipse.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment