Skip to content

Instantly share code, notes, and snippets.

View jamesmichiemo's full-sized avatar
☯️
casting lots

Mana jamesmichiemo

☯️
casting lots
  • University of North Carolina
View GitHub Profile
@jamesmichiemo
jamesmichiemo / 0319_close_the_gap.rb
Created July 10, 2019 00:53
processing + propane sketch
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'propane'
# close the gap
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class CloseGap < Propane::App
def settings
@jamesmichiemo
jamesmichiemo / 0318_draw_an_arrow.rb
Created July 10, 2019 00:52
processing + propane sketch
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'propane'
# draw an arrow
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class DrawArrow < Propane::App
def settings
@jamesmichiemo
jamesmichiemo / 0317_set_transparency.rb
Created July 9, 2019 03:27
processing + propane sketches
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'propane'
# set transparency
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class SetTransparency < Propane::App
def settings
@jamesmichiemo
jamesmichiemo / 0316_control_fill_and_stroke.rb
Created July 8, 2019 13:34
processing + propane sketches
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'propane'
# control fill and stroke
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class FillStroke < Propane::App
def settings
@jamesmichiemo
jamesmichiemo / instagram_video.sh
Created July 6, 2019 22:55
ffmpeg options for instagram clips
# frames per sec
ffmpeg -r 30 \
-f image2 \
# resolution
-s 1080x1080 \
# frame number to start at
-start_number 1 \
# sequence for images with leading zeros
-i gaus-%04d.png \
# audio
@jamesmichiemo
jamesmichiemo / 0315_control_fill_and_stroke.rb
Created July 6, 2019 08:58
processing + propane sketch
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'propane'
# control fill and stroke
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class FillStroke < Propane::App
def settings
@jamesmichiemo
jamesmichiemo / 0314_paint_with_grays.rb
Created July 5, 2019 02:40
processing + propane sketches
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'propane'
# paint with grays
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class Grays < Propane::App
def settings
@jamesmichiemo
jamesmichiemo / 0313_set_stroke_attributes.rb
Created July 3, 2019 23:18
processing + propane sketch
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'propane'
# set stroke attributes
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class StrokeAttributes < Propane::App
def settings
@jamesmichiemo
jamesmichiemo / 0312_set_stroke_weight.rb
Created July 3, 2019 23:13
processing + propane sketch
#!/usr/bin/env jruby
# frozen_string_literal: false
require 'propane'
# set stroke weight
# propane graffiti by 8mana
# based on code by Casey Reas and Ben Fry
class StrokeWeight < Propane::App
def settings
@jamesmichiemo
jamesmichiemo / lovehz.rb
Created July 1, 2019 16:43
sonicpi loop
load_samples [:drum_heavy_kick]
use_bpm 56
use_random_seed 100
live_loop :rhythm do
with_fx :reverb, room: 1 do
with_fx :echo, phase: 0.5, decay: 8 do
sample :drum_heavy_kick, amp: 2.5
sleep 2