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
var imageWidth = 800; | |
var imageHeight = 450; | |
var gridWidth = imageWidth/10; | |
var gridHeight = imageHeight/10; | |
var halfGWidth = gridWidth/2; | |
var halfGHeight = gridHeight/2; | |
$(document).mousemove(function(e){ | |
if(e.pageX for(var i = 0; i <= imageWidth ; i = i+gridWidth){ | |
for(var j = 0; j <= imageHeight ; j = j +gridHeight){ |
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
//image modifier will make images all the same size | |
PImage[] tempImages; | |
String rootDir = "C:/Users/Ben/Dropbox/TuvaLabs UI-UX Design/Mock-ups/Assets/Images for Personalization Page/"; | |
ArrayList directories, names; //holds the directories for all image files to be modified | |
void setup(){ | |
size(200,150); | |
directories = new ArrayList(); |
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
import ddf.minim.analysis.*; | |
import ddf.minim.*; | |
Minim minim; | |
AudioPlayer jingle; | |
FFT fft; | |
AudioInput in; | |
float[] angle; | |
float[] y, x; | |
void setup() |
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
import com.google.gdata.client.Service; | |
import sample.util.SimpleCommandLineParser; | |
import com.google.gdata.client.youtube.YouTubeService; | |
import com.google.gdata.data.PlainTextConstruct; | |
import com.google.gdata.data.TextConstruct; | |
import com.google.gdata.data.media.MediaFileSource; | |
import com.google.gdata.data.media.mediarss.MediaCategory; | |
import com.google.gdata.data.media.mediarss.MediaDescription; | |
import com.google.gdata.data.media.mediarss.MediaKeywords; | |
import com.google.gdata.data.media.mediarss.MediaPlayer; |
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
ThreadedClass myThread; | |
int drawCounter; | |
void setup(){ | |
myThread = new ThreadedClass(50); //set the thread loop to wait every 50 milliseconds | |
drawCounter = 0; | |
myThread.start(); | |
} | |
void draw(){ |
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
//This simple architecture lets you span two monitors with a single processing sketch | |
import java.awt.Frame; | |
import processing.opengl.*; | |
firstApplet firstApp; | |
secondApplet secondApp; | |
SecondFrame secondFrame; | |
FirstFrame firstFrame; | |
int secondFrameWidth = 640, secondFrameHeight = 480; // width and height of secondary monitor |
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
h2 { | |
font-size: 32px; | |
line-height: 36px; | |
font-weight: 400; | |
text-align: center; | |
} | |
h3 { | |
line-height: 27px; | |
font-size: 18px; |
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
strong { | |
font-weight: bold; | |
font-size: 18px; | |
} | |
.asked-by { | |
padding-top: 10px; | |
padding-bottom: 10px; | |
} |
OlderNewer