Created
June 15, 2019 18:36
-
-
Save jamesmichiemo/055887a3266857eb7c24f5193155eb7d to your computer and use it in GitHub Desktop.
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' | |
| # ellipse | |
| # propane graffiti by 8mana | |
| # based on code by Casey Reas and Ben Fry | |
| class Ellipse < Propane::App | |
| def settings | |
| size 480, 120 | |
| end | |
| def setup | |
| sketch_title 'Ellipse' | |
| end | |
| def draw | |
| ellipse 278, -100, 400, 400 | |
| ellipse 120, 100, 110, 110 | |
| ellipse 412, 60, 18, 18 | |
| end | |
| end | |
| Ellipse.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment