Skip to content

Instantly share code, notes, and snippets.

@jamesmichiemo
Created July 6, 2019 08:58
Show Gist options
  • Select an option

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

Select an option

Save jamesmichiemo/5f6f2c7556cf88b6b4c02c2d3a2b83a3 to your computer and use it in GitHub Desktop.
processing + propane sketch
#!/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 # doesn't draw
end
end
FillStroke.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment