Skip to content

Instantly share code, notes, and snippets.

@jamesmichiemo
Created July 10, 2019 00:53
Show Gist options
  • Select an option

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

Select an option

Save jamesmichiemo/fd1c5b77131855a0d9da421a7d136b13 to your computer and use it in GitHub Desktop.
processing + propane sketch
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'propane'
# close the gap
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class CloseGap < Propane::App
def settings
size 480, 120
end
def setup
sketch_title 'close gap'
end
def draw
beginShape()
vertex 180, 82
vertex 207, 36
vertex 214, 63
vertex 407, 11
vertex 412, 30
vertex 219, 82
vertex 226, 109
endShape CLOSE
end
end
CloseGap.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment