Skip to content

Instantly share code, notes, and snippets.

@jamesmichiemo
Last active July 17, 2019 14:17
Show Gist options
  • Select an option

  • Save jamesmichiemo/2a7a7f084c23845982db23e027b99daf to your computer and use it in GitHub Desktop.

Select an option

Save jamesmichiemo/2a7a7f084c23845982db23e027b99daf to your computer and use it in GitHub Desktop.
processing + propane sketch
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'propane'
# change values
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class ChangeValues < Propane::App
def settings
size 480, 120
end
def setup
sketch_title 'change values'
end
def draw
y = 100
d = 130
ellipse 75, y, d, d # left
ellipse 175, y, d, d # middle
ellipse 275, y, d, d # right
end
end
ChangeValues.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment