public class ColourPalette
extends java.lang.Object
| Constructor and Description |
|---|
ColourPalette() |
| Modifier and Type | Method and Description |
|---|---|
static void |
changeColour(int i,
java.awt.Color c)
Change the i-th colour in the list.
|
static java.awt.Color |
colour(int i)
Get the i-th colour in the list.
|
static java.util.List<java.awt.Color> |
copy()
Copy the current colour palette.
|
static void |
set(java.util.List<java.awt.Color> C)
Set the colour palette to (a deep copy of) the given one.
|
static void |
setAll(java.util.List<java.awt.Color> palette)
Set the current colour palette.
|
static void |
setN(int N)
Change to the default colours for N-fold symmetry.
|
public static void setN(int N)
N - The new order of symmetry. Should agree with Point.N.public static java.awt.Color colour(int i)
i - The index of the colour we want to get.public static void changeColour(int i,
java.awt.Color c)
i - The index of the colour we want to change.c - The new colour that we want to put at index i.public static java.util.List<java.awt.Color> copy()
public static void setAll(java.util.List<java.awt.Color> palette)
palette - The new colour palette.public static void set(java.util.List<java.awt.Color> C)
C - The value to which we set the colour palette.