Package | Description |
---|---|
org.cell2d | |
org.cell2d.space |
Modifier and Type | Class and Description |
---|---|
class |
ColorFilter
A ColorFilter is a Filter that blends the RGB value of each pixel in the
original image with that of a single Color that it uses.
|
class |
ColorMapFilter
A ColorMapFilter is a Filter that uses a Map<Color,Color> to replace
some RGB values with others in the filtered image.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<Filter> |
Sprite.getFilters()
Returns an unmodifiable Set view of the Filters that will have an effect
on this Sprite when applied to it with draw().
|
java.util.Set<Filter> |
SpriteSheet.getFilters()
Returns an unmodifiable Set view of the Filters that will have an effect
on this SpriteSheet's Sprites when applied to them with draw().
|
Modifier and Type | Method and Description |
---|---|
void |
AnimationInstance.draw(Graphics g,
int x,
int y,
boolean xFlip,
boolean yFlip,
double angle,
double alpha,
Filter filter) |
void |
Drawable.draw(Graphics g,
int x,
int y,
boolean xFlip,
boolean yFlip,
double angle,
double alpha,
Filter filter)
Draws this Drawable's image to the specified Graphics context.
|
void |
Sprite.draw(Graphics g,
int x,
int y,
boolean xFlip,
boolean yFlip,
double angle,
double alpha,
Filter filter) |
void |
AnimationInstance.draw(Graphics g,
int x,
int y,
double scale,
boolean xFlip,
boolean yFlip,
double alpha,
Filter filter) |
void |
Drawable.draw(Graphics g,
int x,
int y,
double scale,
boolean xFlip,
boolean yFlip,
double alpha,
Filter filter)
Draws this Drawable's image to the specified Graphics context.
|
void |
Sprite.draw(Graphics g,
int x,
int y,
double scale,
boolean xFlip,
boolean yFlip,
double alpha,
Filter filter) |
void |
AnimationInstance.draw(Graphics g,
int x,
int y,
int left,
int right,
int top,
int bottom,
boolean xFlip,
boolean yFlip,
double angle,
double alpha,
Filter filter) |
void |
Drawable.draw(Graphics g,
int x,
int y,
int left,
int right,
int top,
int bottom,
boolean xFlip,
boolean yFlip,
double angle,
double alpha,
Filter filter)
Draws a rectangular region of this Drawable's image to the specified
Graphics context.
|
void |
Sprite.draw(Graphics g,
int x,
int y,
int left,
int right,
int top,
int bottom,
boolean xFlip,
boolean yFlip,
double angle,
double alpha,
Filter filter) |
void |
AnimationInstance.draw(Graphics g,
int x,
int y,
int left,
int right,
int top,
int bottom,
double scale,
boolean xFlip,
boolean yFlip,
double alpha,
Filter filter) |
void |
Drawable.draw(Graphics g,
int x,
int y,
int left,
int right,
int top,
int bottom,
double scale,
boolean xFlip,
boolean yFlip,
double alpha,
Filter filter)
Draws a rectangular region of this Drawable's image to the specified
Graphics context.
|
void |
Sprite.draw(Graphics g,
int x,
int y,
int left,
int right,
int top,
int bottom,
double scale,
boolean xFlip,
boolean yFlip,
double alpha,
Filter filter) |
Constructor and Description |
---|
Sprite(Sprite sprite,
Filter filter,
boolean load)
Constructs a Sprite from an existing Sprite with a Filter applied to it.
|
SpriteSheet(SpriteSheet spriteSheet,
Filter filter,
boolean load)
Constructs a SpriteSheet from an existing SpriteSheet with a Filter
applied to it.
|
Constructor and Description |
---|
Sprite(java.lang.String path,
int originX,
int originY,
Color transColor,
java.util.Set<Filter> filters,
boolean load)
Constructs a Sprite from an image file.
|
Sprite(java.lang.String path,
int originX,
int originY,
int transR,
int transG,
int transB,
java.util.Set<Filter> filters,
boolean load)
Constructs a Sprite from an image file.
|
Sprite(java.lang.String path,
int originX,
int originY,
java.util.Set<Filter> filters,
boolean load)
Constructs a Sprite from an image file.
|
SpriteSheet(java.lang.String path,
int width,
int height,
int spriteWidth,
int spriteHeight,
int spriteSpacing,
int originX,
int originY,
Color transColor,
java.util.Set<Filter> filters,
boolean load)
Constructs a SpriteSheet from an image file.
|
SpriteSheet(java.lang.String path,
int width,
int height,
int spriteWidth,
int spriteHeight,
int spriteSpacing,
int originX,
int originY,
int transR,
int transG,
int transB,
java.util.Set<Filter> filters,
boolean load)
Constructs a SpriteSheet from an image file.
|
SpriteSheet(java.lang.String path,
int width,
int height,
int spriteWidth,
int spriteHeight,
int spriteSpacing,
int originX,
int originY,
java.util.Set<Filter> filters,
boolean load)
Constructs a SpriteSheet from an image file.
|
Modifier and Type | Method and Description |
---|---|
Filter |
SpaceObject.getFilter()
Returns this SpaceObject's Filter, or null if it has none.
|
Modifier and Type | Method and Description |
---|---|
void |
SpaceObject.setFilter(Filter filter)
Sets this SpaceObject's Filter to the specified Filter, or to "no Filter"
if the specified Filter is null.
|