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 ddf.minim.*; | |
import ddf.minim.signals.*; | |
Minim minim; | |
AudioOutput out; | |
Cell[][] field; | |
int timeElapsed, frameSum, beatStage; | |
boolean isPaused; |
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
// Homework 2 | |
// Image Blurring | |
// | |
// In this homework we are blurring an image. To do this, imagine that we have | |
// a square array of weight values. For each pixel in the image, imagine that we | |
// overlay this square array of weights on top of the image such that the center | |
// of the weight array is aligned with the current pixel. To compute a blurred | |
// pixel value, we multiply each pair of numbers that line up. In other words, we | |
// multiply each weight with the pixel underneath it. Finally, we add up all of the | |
// multiplied numbers and assign that value to our output for the current pixel. |
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
/* Udacity Homework 3 | |
HDR Tone-mapping | |
Background HDR | |
============== | |
A High Definition Range (HDR) image contains a wider variation of intensity | |
and color than is allowed by the RGB format with 1 byte per channel that we | |
have used in the previous assignment. |
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 maxBalls = 100; | |
Ball[] ManyBalls = new Ball[maxBalls]; | |
int ballcount = 0; | |
void setup() | |
{ | |
size(640,640); | |
fill(125); | |
colorMode(HSB, 360, 100, 100); | |
background(color(180, 10, 45)); |
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[][] xorTable; | |
Boolean drawOnce = false; | |
int rectSize = 10; | |
int bits = 64; | |
void setup(){ | |
xorTable = new int[bits][bits]; | |
size(bits * rectSize, bits * rectSize); | |
colorMode(RGB, bits); | |
noStroke(); |
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 shutter = 0; | |
int changeover = 0; | |
float[] interx; | |
float[] intery; | |
int headx = 20; | |
int heady = 20; | |
int tailx = 460; | |
int taily = 460; |