Last active
July 17, 2019 14:17
-
-
Save jamesmichiemo/2a7a7f084c23845982db23e027b99daf 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' | |
| # change values | |
| # propane graffiti by 8mana | |
| # based on code by Casey Reas and Ben Fry | |
| class ChangeValues < Propane::App | |
| def settings | |
| size 480, 120 | |
| end | |
| def setup | |
| sketch_title 'change values' | |
| end | |
| def draw | |
| y = 100 | |
| d = 130 | |
| ellipse 75, y, d, d # left | |
| ellipse 175, y, d, d # middle | |
| ellipse 275, y, d, d # right | |
| end | |
| end | |
| ChangeValues.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment