Created
July 10, 2019 00:53
-
-
Save jamesmichiemo/fd1c5b77131855a0d9da421a7d136b13 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' | |
| # close the gap | |
| # propane graffiti by 8mana | |
| # based on code by Casey Reas and Ben Fry | |
| class CloseGap < Propane::App | |
| def settings | |
| size 480, 120 | |
| end | |
| def setup | |
| sketch_title 'close gap' | |
| end | |
| def draw | |
| beginShape() | |
| vertex 180, 82 | |
| vertex 207, 36 | |
| vertex 214, 63 | |
| vertex 407, 11 | |
| vertex 412, 30 | |
| vertex 219, 82 | |
| vertex 226, 109 | |
| endShape CLOSE | |
| end | |
| end | |
| CloseGap.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment