Skip to content

Instantly share code, notes, and snippets.

@jamesmichiemo
Created August 10, 2019 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamesmichiemo/528c22d83a5f518898b7649b4d8e2969 to your computer and use it in GitHub Desktop.
Save jamesmichiemo/528c22d83a5f518898b7649b4d8e2969 to your computer and use it in GitHub Desktop.
processing + propane sketch
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'propane'
# draw some letters
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class DrawLetters < Propane::App
def settings
size 120, 120
end
def setup
sketch_title 'draw some letters'
text_size 64
text_align CENTER
end
def draw
background 0
text key, 60, 80
end
end
DrawLetters.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment