Created
July 18, 2019 05:30
-
-
Save jamesmichiemo/04a2e96324e26a7824de487d9909c5d6 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' | |
| # do the same thing over and over | |
| # propane graffiti by 8mana | |
| # based on code by Casey Reas and Ben Fry | |
| class DoThingOver < Propane::App | |
| def settings | |
| size 480, 120 | |
| end | |
| def setup | |
| sketch_title 'do the same thing over and over' | |
| end | |
| def draw | |
| strokeWeight 8 | |
| line 20, 40, 80, 80 | |
| line 80, 40, 140, 80 | |
| line 140, 40, 200, 80 | |
| line 200, 40, 260, 80 | |
| line 260, 40, 320, 80 | |
| line 320, 40, 380, 80 | |
| line 380, 40, 440, 80 | |
| end | |
| end | |
| DoThingOver.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment