Created
July 6, 2019 08:58
-
-
Save jamesmichiemo/5f6f2c7556cf88b6b4c02c2d3a2b83a3 to your computer and use it in GitHub Desktop.
processing + propane sketch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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