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 controlP5.*; | |
import processing.svg.*; | |
ControlP5 gui; | |
PShape s; | |
PShape liner; | |
PImage p1; | |
PImage p2; |
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
// This #include statement was automatically added by the Spark IDE. | |
#include "neopixel/neopixel.h" | |
#include <math.h> | |
//set up the pin that controls the LEDs, the type of LEDs (WS2812B) and the number of LEDs in the cube (8*8*8=512) | |
#define PIXEL_PIN D0 | |
#define PIXEL_COUNT 512 | |
#define PIXEL_TYPE WS2812B | |
#define SIDE 8 | |
//accelerometer pinout |
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
PImage imgOriginal, imgNew; | |
color c; | |
int maxVar = 30; // this is how close the colors need to be for circle expansion. Lower number = closer in color | |
int step = 2; // smallest circle/step size | |
int circleResolution = 90; // every 90-degrees... less degrees = more expansion = more time to draw | |
int x=0,y=0; | |
boolean isRunning = true; |
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
PImage imgOriginal, imgNew; | |
color c; | |
void setup() { | |
imgOriginal = loadImage("IMG_6319.jpg"); // load image here | |
hint(DISABLE_DEPTH_TEST); | |
blendMode(MULTIPLY); | |
imgNew = new PImage(1200,600); | |
imgNew.copy(imgOriginal,0,0,imgOriginal.width,imgOriginal.height,0,0,1200,600); // stretch original image to size |
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 toxi.geom.*; | |
import toxi.geom.mesh2d.*; | |
import toxi.util.*; | |
import toxi.util.datatypes.*; | |
import toxi.processing.*; | |
Voronoi vo = new Voronoi(); | |
ToxiclibsSupport gfx; | |
PImage cm = new PImage(1280,720); |
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
// HueTube | |
// for Structure Synth - Anandamide variant (http://anandamidelogistics.com/) | |
set translation [-0.602337 0.326383 -20] | |
set rotation [-0.853031 -0.515111 -0.0834604 -0.518933 0.85418 0.0319882 0.0548153 0.0706038 -0.995965] | |
set pivot [0 0 0] | |
set scale 1.02 | |
set background #000 | |
set maxdepth 400 |
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
// settings | |
set translation [-0.490422 2.32762 -20] | |
set rotation [-0.00235658 -0.0112162 0.999936 -0.906447 0.422316 0.00260091 -0.422318 -0.906383 -0.0111623] | |
set pivot [0 0 0] | |
set scale 0.108795 | |
set background #fff | |
set maxdepth 10 |