
timeBench.util.ColorLib Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of timebench Show documentation
Show all versions of timebench Show documentation
TimeBench, a flexible, easy-to-use, and reusable software library written in Java that provides foundational data structures and algorithms for time- oriented data in Visual Analytics.
The newest version!
package timeBench.util;
import org.timebench.util.color.HCL;
/**
*
*
*
* Added: / TL
* Modifications:
*
*
* @author Tim Lammarsch
*
*/
public class ColorLib {
public static int[][] getCategoryPalette(int size1, int size2) {
return getCategoryPalette(size1,size2,60.0,2.2);
}
public static int[][] getCategoryPalette(int size1, int size2,double chroma,double gamma) {
int[][] result = new int[size1][size2];
double min = HCL.getMinLuminanceForChroma(chroma, gamma);
double max = HCL.getMaxLuminanceForChroma(chroma, gamma);
double range = max-min;
for(int i=0; i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy