Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Program a simple strobe effect

$
0
0

@aliva666 wrote:

HI! i'm trying to program a simple strobe effect and handle the speed using knob midi here is my logic:

ofDrawRectangle(0, 0, ofGetWidth(), ofGetHeight());

ofSleepMillis(knobValue);

ofSetColor(255);

ofDrawRectangle(0, 0, ofGetWidth(), ofGetHeight());

ofSetColor(255);

I only get the first first color what i'm doing wrong? in the draw function , draw function suppose to loop right?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles