public class FromPImage extends Palette
Constructor and Description |
---|
FromPImage(PApplet parent)
Creates a Palette object from on a PImage.
|
FromPImage(PApplet parent,
PImage img)
Creates a Palette object from on a PImage.
|
FromPImage(PApplet parent,
PImage img,
int count) |
Modifier and Type | Method and Description |
---|---|
void |
createPalette() |
FromPImage |
setImage(PImage img)
Sets the image to create a color palette from.
|
addColor, addColors, createPalette, drawSwatches, drawSwatches, getAverage, getColor, getDarkest, getLightest, numSwatches, removeDuplicateSwatches, rotateRGB, rotateRYB, sortByHue, sortByLuminance, sortByProximity, sortBySaturation
public FromPImage(PApplet parent, PImage img)
parent
- Reference to the main PApplet object.img
- a Processing image.public FromPImage(PApplet parent)
parent
- Reference to the main PApplet object.img
- a Processing image.public FromPImage setImage(PImage img)
img
- public void createPalette()
createPalette
in class Palette
Processing library colorLib by Jan Vantomme. (C) 2012 - 2015