All Downloads are FREE. Search and download functionalities are using the official Maven repository.

timeBench.util.ColorLib Maven / Gradle / Ivy

Go to download

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