Created
July 10, 2019 00:52
-
-
Save jamesmichiemo/8c7a8eb64f8a005e01b19218695d28e5 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' | |
| # draw an arrow | |
| # propane graffiti by 8mana | |
| # based on code by Casey Reas and Ben Fry | |
| class DrawArrow < Propane::App | |
| def settings | |
| size 480, 120 | |
| end | |
| def setup | |
| sketch_title 'draw an arrow' | |
| 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() | |
| end | |
| end | |
| DrawArrow.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment