MCPcopy Create free account
hub / github.com/cpvrlab/ImagePlay / lightness

Method lightness

IPL/include/IPLColor.h:124–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 }
123
124 float lightness() const
125 {
126 float hsl[3];
127 rgbToHsl(r, g, b, hsl);
128 return hsl[2];
129 }
130
131
132 // https://github.com/ratkins/RGBConverter/blob/master/RGBConverter.cpp

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected