Created
July 8, 2019 13:34
-
-
Save jamesmichiemo/306f6aa84003044a7d984dd09ee6e20c to your computer and use it in GitHub Desktop.
processing + propane sketches
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 | |
| end | |
| end | |
| FillStroke.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment