Created
August 2, 2019 14:20
-
-
Save jamesmichiemo/7efcc385c31b4b0eb4f4f800cc306274 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 continuously | |
| # propane graffiti by 8mana | |
| # based on code by Casey Reas and Ben Fry | |
| class DrawContinuously < Propane::App | |
| def settings | |
| size 480, 120 | |
| end | |
| def setup | |
| sketch_title 'draw continuously' | |
| strokeWeight 4 | |
| stroke 0, 102 | |
| end | |
| def draw | |
| line mouseX, mouseY, pmouseX, pmouseY | |
| end | |
| end | |
| DrawContinuously.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment