← Back

ofxHLuv

github.com/PauRosello97/ofxHLuv · @PauRosello97
OF 0.11 Graphics

HLuv is a perceptually uniform color space with a constant luminance.

3 2 Last commit 5y ago Created 5y ago

README

ofxHLuv



HLuv is a perceptually uniform color space with a constant luminance.

Installation



Download this repository in your addons folder

$ cd ../addons/
$ git clone https://github.com/PauRosello97/ofxHLuv/


Usage



``c++

include "ofxHLuv.h";



float hue = 30; // Hue from 0 to 360 float luminance = 60; // Luminance from 0 to 100 ofSetColor(HLuv.getColor(hue, luminance)); ofDrawRectangle(0, 0, ofGetWidth(), ofGetHeight());
``

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Get this addon

HTTPS
SSH