Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save jamesmichiemo/8c7a8eb64f8a005e01b19218695d28e5 to your computer and use it in GitHub Desktop.
processing + propane sketch
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'propane'
# draw an arrow
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class DrawArrow < Propane::App
def settings
size 480, 120
end
def setup
sketch_title 'draw an arrow'
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()
end
end
DrawArrow.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment