Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (12 sloc) 516 Bytes
// Learning Processing
// Daniel Shiffman
// http://www.learningprocessing.com
// Exercise 17-7: Create a video text mosaic where each letter is colored white,
// but the size of each letter is determined by a pixel's brightness.
// The brighter the pixel, the bigger it is. Here is a little bit of code from the
// inside of the pixel loop (with some blank spots) to get you started.
/*
float b = brightness(video.pixels[i + j*video.width]);
float fontSize = ____ * (_____ / _____);
textSize(fontSize);
*/
You can’t perform that action at this time.