Skip to content

Instantly share code, notes, and snippets.

@jamesmichiemo
Created August 1, 2019 21:40
Show Gist options
  • Save jamesmichiemo/9b115d58590efc008028bee947801261 to your computer and use it in GitHub Desktop.
Save jamesmichiemo/9b115d58590efc008028bee947801261 to your computer and use it in GitHub Desktop.
processing + propane sketch
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'propane'
# track the mouse
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class TrackMouse < Propane::App
def settings
size 480, 120
end
def setup
sketch_title 'track the mouse'
fill 0, 102
noStroke
end
def draw
ellipse mouseX, mouseY, 9, 9
end
end
TrackMouse.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment