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

setHsb: wrap fails at 298

$
0
0

@80l08 wrote:

ofColor color = ofColor(0);
color.setHsb(297, 255, 255);
cout<<color.getHue()<<endl;

prints 42

ofColor color = ofColor(0);
color.setHsb(298, 255, 255);
cout<<color.getHue()<<endl;

prints 0

everything > 298 seems to set hue to 0

any reason for this?

thank you!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Latest Images

Trending Articles



Latest Images