Skip to content

Instantly share code, notes, and snippets.

@thenapking
Created May 19, 2021 08:40
Show Gist options
  • Save thenapking/5d5994b31129e795264af1793398c7bf to your computer and use it in GitHub Desktop.
Save thenapking/5d5994b31129e795264af1793398c7bf to your computer and use it in GitHub Desktop.
Basic Propane setup
#!/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