This file contains 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
use_bpm 70 | |
use_random_seed 613 | |
rhy = (ring 1, 1.5, 0.5, 1) | |
chr = (scale :e2, :chinese).pick 4 | |
live_loop :kik do | |
sample :bd_808, amp: 1.99 | |
sleep rhy.tick | |
end |
This file contains 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
use_bpm 60 | |
use_random_seed 13 | |
rhy = (ring 0.75, 0.75, 1, 0.75, 0.75) | |
with_fx :reverb, mix: 0.2, room: 0.6 do | |
live_loop :kick do | |
sample :bd_tek, beat_stretch: 0.3, amp: 2 | |
sleep rhy.tick | |
end |
This file contains 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
void setup() { | |
w=screen.width; | |
h=screen.height, | |
size(w,h,P3D); | |
noStroke(); | |
} | |
void draw() { | |
lights(); |
This file contains 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
float[][] p = new float[300][4]; | |
void setup() { | |
w=screen.width-1; | |
h=screen.height-80; | |
size(w,h); | |
acc=0.0006; | |
for(i=0;i<p.length;i++){ | |
p[i][0] = random(0,w); | |
p[i][1] = random(0,h); | |
p[i][2] = 0; |
This file contains 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
void setup() { | |
w=screen.width; | |
h=screen.height-60; | |
size(w,h); | |
background(0); | |
loadPixels(); | |
colorMode(HSB); | |
} |
This file contains 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
/** | |
* @mixin | |
* Mixin static functionality to a magnet | |
**/ | |
define(function () { | |
return { | |
/** | |
* Get the visibility types for a magnet | |
* @return {object} an object with keys of types to their values | |
**/ |
This file contains 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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var friends = {}, id; | |
var Robot = function(robot) { | |
id = robot.id; | |
// friends is the set all friendly robots | |
friends[id] = id; | |
clone = robot.clone(); |
This file contains 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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
This file contains 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
javascript:setInterval(function(){document.body.style.backgroundColor='hsl('+parseInt(Math.random()*255)+',100%,50%)';},50)) |