public class ColorScheme extends Object
This is the ColorScheme class which holds a list of ColorSet
objects that contain Color
objects. Currently, ColorScheme supports loading .xml files created
from http://paletton.com
, .ase files (Adobe Swatch Exchange), and image files.
The .ase parsing code is a slightly modified version of the code from the kulerviewer by Daniel Weber.
Constructor and Description |
---|
ColorScheme(String filename,
processing.core.PApplet parent)
This is the constructor for
ColorScheme objects. |
Modifier and Type | Method and Description |
---|---|
ArrayList<Color> |
getColors()
|
ArrayList<ColorSet> |
getColorSets()
|
int[] |
toArray()
Transforms the ColorScheme to an array of
int numbers of the colors. |
ArrayList<Integer> |
toIntArray()
Deprecated.
use
toIntegerArray() instead. This will be removed in future versions. |
ArrayList<Integer> |
toIntegerArray()
|
public ColorScheme(String filename, processing.core.PApplet parent)
ColorScheme
objects.filename
- - the file to be parsed.parent
- - the parent sketchpublic ArrayList<ColorSet> getColorSets()
public int[] toArray()
int
numbers of the colors. You can use these
in the same way you would use the Processing 'color' type.@Deprecated public ArrayList<Integer> toIntArray()
toIntegerArray()
instead. This will be removed in future versions.Copyright © 2015. All rights reserved.