ColorDistribution.h
Classes
- Global Functions -- Global functions for generating color cube dimensions (full description)
Interface
- Bool getRGBDistribution(uInt nCells, Bool pow2, uInt & nRed, uInt & nGreen, uInt & nBlue)
- Bool getHSVDistribution(uInt nCells, Bool pow2, uInt & nHue, uInt & nSat, uInt & nVal)
This table is used to map X number of color cells
into an even cube for RGB distribution. It is unclear
in my mind what a good HSV distribution ought to be.
Maybe read table as H,V,S. Probably build different
one for HSV.
Member Description
Bool getRGBDistribution(uInt nCells, Bool pow2, uInt & nRed, uInt & nGreen, uInt & nBlue)
Bool getHSVDistribution(uInt nCells, Bool pow2, uInt & nHue, uInt & nSat, uInt & nVal)
Given nCells cells, return the dimensions of an RGB or HSV color cube
that maximally uses those cells by finding the best fit dimensions.
If pow2 is True, then returned dimensions are limited to powers of two.