Skip to content

Instantly share code, notes, and snippets.

@jamesmichiemo
Created July 19, 2019 21:42
Show Gist options
  • Select an option

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

Select an option

Save jamesmichiemo/abcc30e823a6b7b5f7e4036f74273cc2 to your computer and use it in GitHub Desktop.
processing + propane sketch
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'propane'
# flex your loop muscles
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class FlexLoop < Propane::App
def settings
size 480, 120
end
def setup
sketch_title 'flex your loop muscles'
end
def draw
strokeWeight 2
$i = 20
$num = 400
while $i < $num do
line($i, 40, $i + 60, 80)
$i +=8
end
end
end
FlexLoop.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment