Removing a few examples for 2.0

This commit is contained in:
Casey Reas
2011-09-16 00:02:20 +00:00
parent 93b887ee24
commit c3b8b312a0
31 changed files with 318 additions and 417 deletions
@@ -3,8 +3,7 @@
*
* Click on the image to give it focus and press the letter keys
* to create forms in time and space. Each key has a unique identifying
* number called its ASCII value. These numbers can be used to position
* shapes in space.
* number. These numbers can be used to position shapes in space.
*/
int rectWidth;
@@ -9,16 +9,14 @@
float scale;
void setup()
{
void setup() {
size(640, 360);
noStroke();
scale = width/20;
}
void draw()
{
for(int i = 0; i < scale; i++) {
void draw() {
for (int i = 0; i < scale; i++) {
colorMode(RGB, (i+1) * scale * 10);
fill(millis()%((i+1) * scale * 10));
rect(i*scale, 0, scale, height);