Skip to content

Instantly share code, notes, and snippets.

@jamesmichiemo
Created July 8, 2019 13:34
Show Gist options
  • Select an option

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

Select an option

Save jamesmichiemo/306f6aa84003044a7d984dd09ee6e20c to your computer and use it in GitHub Desktop.
processing + propane sketches
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'propane'
# control fill and stroke
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class FillStroke < Propane::App
def settings
size 480, 120
end
def setup
sketch_title 'control fill and stroke'
end
def draw
fill 153 # medium gray
ellipse 132, 82, 200, 200 # gray circle
noFill() # turn off fill # turn off fill
ellipse 228, -16, 200, 200 # outline circle
noStroke() # turn off stroke
ellipse 268, 118, 200, 200
end
end
FillStroke.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment