Skip to content

Instantly share code, notes, and snippets.

@jamesmichiemo
Created August 2, 2019 14:20
Show Gist options
  • Select an option

  • Save jamesmichiemo/7efcc385c31b4b0eb4f4f800cc306274 to your computer and use it in GitHub Desktop.

Select an option

Save jamesmichiemo/7efcc385c31b4b0eb4f4f800cc306274 to your computer and use it in GitHub Desktop.
processing + propane sketch
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'propane'
# draw continuously
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class DrawContinuously < Propane::App
def settings
size 480, 120
end
def setup
sketch_title 'draw continuously'
strokeWeight 4
stroke 0, 102
end
def draw
line mouseX, mouseY, pmouseX, pmouseY
end
end
DrawContinuously.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment