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

OfSetColor trouble!

$
0
0

@Ha99 wrote:

Hello, I am trying to create a colour generator by using ofGetFrameNum() however, the colour stops at white which nothing shows. Is there any way the colour keeps printing?

This is the code:

void ofApp::update(){

 ofSetColor(10+ofGetFrameNum()/10,20+ofGetFrameNum()/20,10+ofGetFrameNum()/15);

}

thanks! :blush:

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Latest Images

Trending Articles



Latest Images