This file contains hidden or 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' | |
| # close the gap | |
| # propane graffiti by 8mana | |
| # based on code by Casey Reas and Ben Fry | |
| class CloseGap < Propane::App | |
| def settings |
This file contains hidden or 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 an arrow | |
| # propane graffiti by 8mana | |
| # based on code by Casey Reas and Ben Fry | |
| class DrawArrow < Propane::App | |
| def settings |
This file contains hidden or 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' | |
| # set transparency | |
| # propane graffiti by 8mana | |
| # based on code by Casey Reas and Ben Fry | |
| class SetTransparency < Propane::App | |
| def settings |
This file contains hidden or 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' | |
| # control fill and stroke | |
| # propane graffiti by 8mana | |
| # based on code by Casey Reas and Ben Fry | |
| class FillStroke < Propane::App | |
| def settings |
This file contains hidden or 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
| # 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 |
This file contains hidden or 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' | |
| # control fill and stroke | |
| # propane graffiti by 8mana | |
| # based on code by Casey Reas and Ben Fry | |
| class FillStroke < Propane::App | |
| def settings |
This file contains hidden or 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' | |
| # paint with grays | |
| # propane graffiti by 8mana | |
| # based on code by Casey Reas and Ben Fry | |
| class Grays < Propane::App | |
| def settings |
This file contains hidden or 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' | |
| # set stroke attributes | |
| # propane graffiti by 8mana | |
| # based on code by Casey Reas and Ben Fry | |
| class StrokeAttributes < Propane::App | |
| def settings |
This file contains hidden or 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' | |
| # set stroke weight | |
| # propane graffiti by 8mana | |
| # based on code by Casey Reas and Ben Fry | |
| class StrokeWeight < Propane::App | |
| def settings |
This file contains hidden or 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
| 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 |