Created
May 19, 2021 08:40
-
-
Save thenapking/5d5994b31129e795264af1793398c7bf to your computer and use it in GitHub Desktop.
Basic Propane setup
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 | |
require 'propane' | |
class Render < Propane::App | |
def settings | |
size 600, 600 | |
end | |
def setup | |
frame_rate 60 | |
color_mode RGB, 255 | |
end | |
def draw | |
background(0) | |
translate(width/2, height/2) | |
stroke(255) | |
stroke_weight(16) | |
point 0,0 | |
end | |
end | |
Render.new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment