Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jamesmichiemo/04a2e96324e26a7824de487d9909c5d6 to your computer and use it in GitHub Desktop.

Select an option

Save jamesmichiemo/04a2e96324e26a7824de487d9909c5d6 to your computer and use it in GitHub Desktop.
processing + propane sketch
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'propane'
# do the same thing over and over
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class DoThingOver < Propane::App
def settings
size 480, 120
end
def setup
sketch_title 'do the same thing over and over'
end
def draw
strokeWeight 8
line 20, 40, 80, 80
line 80, 40, 140, 80
line 140, 40, 200, 80
line 200, 40, 260, 80
line 260, 40, 320, 80
line 320, 40, 380, 80
line 380, 40, 440, 80
end
end
DoThingOver.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment