SketchPad

Some web space to sketch, doodle and make notes. Made using these tools. See more of my work here.

Daily Sketches

Sketch 2015-06-07

        void ofApp::setupAnim() {
    size = 60;
    margin = width - size;
    halfMargin = margin * 0.5;
}

void ofApp::drawAnim() {
    ofBackground(ofColor::white);
    
    ofSetColor(ofColor::black, 10);
    for(int i = 0; i < 1400; i++) {
        x = width * 0.5 - size * 0.5 + (ofRandom(margin) - halfMargin);
        y = floor(ofRandom(height/size)) * size;
        ofRect(x, y, size, size);
    }
    
    ofSetColor(ofColor::white, 64);
    for(int i = 0; i < height/size; i++) {
        ofRect(halfMargin, i * size + size * 0.5, width - margin, 4);
    }
    
    ofSetColor(ofColor::white, 64);
    for(int i = -height; i < height; i++) {
        ofRect(halfMargin, (i * size * 0.5) + ofGetFrameNum(), width - margin, 4);
        ofRect(halfMargin, (i * size * 0.5) - ofGetFrameNum(), width - margin, 4);
    }
    
    if(ofGetFrameNum() == 30) {
        renderGif();
    }
}
    

Running out of time.

Daily sketch