SketchPad

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

Daily Sketches

Sketch 2015-04-24

        void ofApp::setupAnim() {
    ofSetCircleResolution(100);
    ofNoFill();
    ofEnableSmoothing();
    multiplier = 5;
    switchDirection = false;
}

void ofApp::updateAnim(){
    if(switchDirection) {
        multiplier += 0.2;
    } else {
        multiplier -= 0.2;
    }
    
    if(multiplier <= 0.2 || multiplier >= 10) {
        switchDirection = !switchDirection;
        if(!switchDirection) saveNow = true;
    }
}

void ofApp::drawAnim() {
    ofBackground(0, 0, 0);
    for(int i = 1; i <= 100; i++) {
        ofCircle(width * 0.5, height * 0.5, i * multiplier);
        ofCircle(width * 0.5, height * 0.5, i * (15 - multiplier));
    }
    if(!renderMode) {
        ofDrawBitmapString(ofToString(multiplier), 20, 20);
    }
}
    

Concentric circles, moving against each other. As rendered by the pixel grid of your monitor.

Daily sketch