Skip to content

Instantly share code, notes, and snippets.

@jamesmichiemo
Created August 1, 2019 21:39
Show Gist options
  • Save jamesmichiemo/fe5740f82d19f4211c754b0a791096a1 to your computer and use it in GitHub Desktop.
Save jamesmichiemo/fe5740f82d19f4211c754b0a791096a1 to your computer and use it in GitHub Desktop.
processing + propane sketch
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'propane'
# setup(), meet draw()
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class SetupDraw < Propane::App
def settings
size 480, 120
end
def setup
sketch_title 'setup(), meet draw()'
$x = 280
$y = -100
$diameter = 380
end
def draw
background 204
ellipse $x, $y, $diameter, $diameter
end
end
SetupDraw.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment