SketchPad

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

Daily Sketches

Sketch 2015-05-10

        void ofApp::updateAnim(){
    masker.beginBackground();
    ofTranslate(12, 12);
    ofSetColor(ofColor::red);
    for(int i = 0; i < width; i += 50) {
        for(int j = 0; j < height; j += 50) {
            ofRect(i, j, 25, 25);
        }
    }
    masker.endBackground();
    
    masker.beginMask();
    ofClear(0, 0, 0, 255);
    ofSetColor(ofColor::white);
    diameter = ofMap(sin(ofGetFrameNum() * 0.1), -1, 1, 1, 200);
    position = ofMap(sin(ofGetFrameNum() * 0.2), -1, 1, -height, height + 10);
    ofCircle(halfWidth, position, diameter);
    masker.endMask();
    
    masker.beginForeground();
    ofTranslate(12, 12);
    ofSetColor(ofColor::blue);
    for(int i = 0; i < width; i += 25) {
        for(int j = 0; j < height; j += 25) {
            ofRect(i, j, 12, 12);
        }
    }
    masker.endForeground();
}

void ofApp::drawAnim() {
    
    masker.draw();
    
    if(ofGetFrameNum() == 62) {
        renderGif();
    }
}
    

Yes, now it's an addon

Daily sketch