Created
July 19, 2019 13:01
-
-
Save jamesmichiemo/25a7bb889bf4516b5bba83e49b018fbd 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' | |
| # use a loop | |
| # propane graffiti by 8mana | |
| # based on code by Casey Reas and Ben Fry | |
| class UseLoop < Propane::App | |
| def settings | |
| size 480, 120 | |
| end | |
| def setup | |
| sketch_title 'use a loop' | |
| end | |
| def draw | |
| strokeWeight 8 | |
| $i = 20 | |
| $num = 400 | |
| while $i < $num do | |
| line($i, 40, $i + 60, 80) | |
| $i +=60 | |
| end | |
| end | |
| end | |
| UseLoop.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment