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
| uniform vec2 u_resolution; | |
| void main(){ | |
| vec2 st = gl_FragCoord.xy/u_resolution.xy; | |
| vec3 color; | |
| float shaders = 50.0; | |
| for(float i = 0.0; i < shaders; i++){ | |
| float left = step(1.0/shaders*(shaders - i), st.x); | |
| color += vec3(left * 1.0/shaders); | |
| gl_FragColor = vec4(color,1.0); | |
| } |
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
| import beads.*; | |
| import java.util.Arrays; | |
| AudioContext ac; | |
| GranularSamplePlayer player; | |
| void setup() { | |
| size(800, 600); | |
| ac = new AudioContext(); | |
| Sample sample = SampleManager.sample(dataPath("Violet.mp3")); | |
| player = new GranularSamplePlayer(ac, sample); |
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
| ;; package | |
| (require 'package) | |
| (add-to-list 'package-archives | |
| '("melpa" . "http://melpa.milkbox.net/packages/") t) | |
| (add-to-list 'package-archives | |
| '("marmalade" . "http://marmalade-repo.org/packages/")) | |
| (package-initialize) | |
| ;; basic settings | |
| (tool-bar-mode 0) |
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
| #version 120 | |
| uniform sampler2DRect tex0; // ソースのテクスチャ | |
| uniform float threshold; // 閾値 | |
| uniform vec3 chromaKeyColor; // キーの色 | |
| varying vec2 texCoordVarying; | |
| void main() | |
| { | |
| // テクスチャーの色を取得 |
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
| int NUM = 1000; //パーティクルの数 | |
| //パーティクルを格納する配列 | |
| ParticleVec3[] particles = new ParticleVec3[NUM]; | |
| void setup() { | |
| size(1280, 720, P3D); | |
| frameRate(60); | |
| //パーティクルを初期化 | |
| for (int i = 0; i < NUM; i++) { | |
| //クラスをインスタンス化 |
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
| ArrayList<Bubble> bubbles; //Bubbleクラスを格納するArrayList | |
| PImage image; //色をピックアップするイメージ | |
| int maxSize = 40; //円の最大サイズ(直径) | |
| void setup() { | |
| //画面初期設定 | |
| size(1200, 900); | |
| frameRate(60); | |
| noStroke(); | |
| //ArrayListの初期化 |
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
| bps (170/120) | |
| d1 $ | |
| stack[ | |
| sound "909", | |
| sound "~ bass:1" | |
| ] | |
| let pat1 = "{-12 ~ [~ 0] ~ 0*2 [~ 0]}%4" |
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/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
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
| d1 $sound "bd" |
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
| import oscP5.*; | |
| import netP5.*; | |
| OscP5 oscP5; | |
| NetAddress myRemoteLocation; | |
| float x; | |
| float y; | |
| void setup() { | |
| size(600, 600); |