public class SnifflibColorTable
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.ArrayList |
Table |
Constructor and Description |
---|
SnifflibColorTable() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(java.lang.Object C) |
int |
closestColor(java.awt.Color C)
Find the index of the color in the table closest (by Euclidean Norm) to the
given color.
|
float |
colorDistance(java.awt.Color a,
java.awt.Color b) |
java.awt.Color |
get(int k) |
int |
size() |
public int size()
public java.awt.Color get(int k)
public boolean add(java.lang.Object C)
public float colorDistance(java.awt.Color a, java.awt.Color b)
public int closestColor(java.awt.Color C)
Copyright © 2011, 2013. Daniel P. Dougherty