Created
August 10, 2019 02:02
-
-
Save jamesmichiemo/528c22d83a5f518898b7649b4d8e2969 to your computer and use it in GitHub Desktop.
processing + propane sketch
This file contains 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 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