Package | Description |
---|---|
org.cell2d | |
org.cell2d.celick | |
org.cell2d.celick.opengl.renderer | |
org.cell2d.space | |
org.cell2d.space.map |
Modifier and Type | Field and Description |
---|---|
static Color |
Color.BLACK
The color black.
|
static Color |
Color.TRANSPARENT
A completely transparent Color.
|
static Color |
Color.WHITE
The color white.
|
Modifier and Type | Method and Description |
---|---|
Color |
ColorFilter.getColor()
Returns the Color that this ColorFilter uses.
|
Color |
ColorMultiplyFilter.getColor()
Returns the Color that this ColorMultiplyFilter uses.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<Color,Color> |
ColorMapFilter.getColorMap()
Returns an unmodifiable view of the Map that this ColorMapFilter uses.
|
java.util.Map<Color,Color> |
ColorMapFilter.getColorMap()
Returns an unmodifiable view of the Map that this ColorMapFilter uses.
|
Modifier and Type | Method and Description |
---|---|
void |
CellGame.enterState(int id,
Color fadeColor,
int fadeOutTime,
int fadeInTime)
Instructs this CellGame to enter its GameState with the specified ID the
next time it finishes a game logic update, using a visual
fade-out/fade-in effect to transition to it from the current GameState.
|
Constructor and Description |
---|
ColorFilter(Color color)
Constructs a ColorFilter that uses the specified Color.
|
ColorMapFilter(Color key,
Color value)
Constructs a ColorMapFilter with a Map that maps the specified key Color
to the specified value Color.
|
ColorMultiplyFilter(Color color)
Constructs a ColorMultiplyFilter that uses the specified Color.
|
Sprite(java.lang.String path,
int originX,
int originY,
Color transColor,
boolean load,
Filter... filters)
Constructs a Sprite from an image file.
|
SpriteSheet(java.lang.String path,
int width,
int height,
int spriteWidth,
int spriteHeight,
int spacing,
int margin,
int originX,
int originY,
Color transColor,
boolean load,
Filter... filters)
Constructs a SpriteSheet from an image file.
|
Constructor and Description |
---|
ColorMapFilter(java.util.Map<Color,Color> colorMap)
Constructs a ColorMapFilter that uses a copy of the specified Map.
|
ColorMapFilter(java.util.Map<Color,Color> colorMap)
Constructs a ColorMapFilter that uses a copy of the specified Map.
|
Modifier and Type | Field and Description |
---|---|
protected Color[] |
Image.corners
The colours for each of the corners
|
Modifier and Type | Method and Description |
---|---|
Color |
ShapeFill.colorAt(Shape shape,
float x,
float y)
Get the colour that should be applied at the specified location
|
Color |
Graphics.getBackground()
Get the current graphics context background color
|
Color |
Graphics.getColor()
Get the color in use by this graphics context
|
Color |
Image.getColor(int x,
int y)
Get the colour of a pixel at a specified location in this image
|
Color |
Graphics.getPixel(int x,
int y)
Get the colour of a single pixel in this graphics context
|
Modifier and Type | Method and Description |
---|---|
void |
Image.draw(float x,
float y,
Color filter)
Draw this image at the specified location
|
void |
Image.draw(float x,
float y,
float scale,
Color filter)
Draw the image with a given scale
|
void |
Image.draw(float x,
float y,
float width,
float height,
Color filter)
Draw this image at a specified location and size
|
void |
Image.draw(float x,
float y,
float x2,
float y2,
float srcx,
float srcy,
float srcx2,
float srcy2,
Color filter)
Draw a section of this image at a particular location and scale on the screen
|
void |
Image.drawEmbedded(float x,
float y,
float x2,
float y2,
float srcx,
float srcy,
float srcx2,
float srcy2,
Color filter)
Draw a section of this image at a particular location and scale on the screen, while this
is image is "in use", i.e.
|
void |
Image.drawFlash(float x,
float y,
float width,
float height,
Color col)
Draw this image at a specified location and size as a silohette
|
void |
Graphics.drawGradientLine(float x1,
float y1,
Color Color1,
float x2,
float y2,
Color Color2)
Draw a line with a gradient between the two points.
|
void |
Graphics.drawImage(Image image,
float x,
float y,
Color col)
Draw an image to the screen
|
void |
Graphics.drawImage(Image image,
float x,
float y,
float srcx,
float srcy,
float srcx2,
float srcy2,
Color col)
Draw a section of an image at a particular location and scale on the
screen
|
void |
Graphics.drawImage(Image image,
float x,
float y,
float x2,
float y2,
float srcx,
float srcy,
float srcx2,
float srcy2,
Color col)
Draw a section of an image at a particular location and scale on the
screen
|
void |
Image.drawSheared(float x,
float y,
float hshear,
float vshear,
Color filter)
Draw this image at a specified location and size
|
void |
AngelCodeFont.drawString(float x,
float y,
java.lang.String text,
Color col) |
void |
Font.drawString(float x,
float y,
java.lang.String text,
Color col)
Draw a string to the screen
|
void |
AngelCodeFont.drawString(float x,
float y,
java.lang.String text,
Color col,
int startIndex,
int endIndex) |
void |
Font.drawString(float x,
float y,
java.lang.String text,
Color col,
int startIndex,
int endIndex)
Draw part of a string to the screen.
|
void |
Graphics.setBackground(Color color)
Set the background colour of the graphics context.
|
void |
Graphics.setColor(Color color)
Set the color to use when rendering to this context
|
Constructor and Description |
---|
Image(java.lang.String ref,
boolean flipped,
int f,
Color transparent)
Create an image based on a file at the specified location
|
Image(java.lang.String ref,
Color trans)
Create an image based on a file at the specified location
|
SpriteSheet(java.lang.String ref,
int tw,
int th,
Color col)
Create a new sprite sheet based on a image location
|
SpriteSheet(java.lang.String ref,
int tw,
int th,
Color col,
int spacing)
Create a new sprite sheet based on a image location
|
Modifier and Type | Method and Description |
---|---|
static void |
Renderer.bindColor(Color color)
Bind the specified Color to the GL context.
|
Modifier and Type | Method and Description |
---|---|
Color |
ColorSpaceLayer.getColor()
Returns the Color that this ColorSpaceLayer displays.
|
Modifier and Type | Method and Description |
---|---|
void |
ColorSpaceLayer.setColor(Color color)
Sets the Color that this ColorSpaceLayer displays to the specified Color.
|
Constructor and Description |
---|
ColorSpaceLayer(Color color)
Constructs a ColorSpaceLayer that displays the specified Color.
|
Modifier and Type | Method and Description |
---|---|
static Color |
TiledArea.getTintColor(org.tiledreader.TiledLayer layer)
Returns a Cell2D Color that represents the tint color of the specified
TiledLayer.
|
static Color |
TiledArea.getTransColor(org.tiledreader.TiledImage image)
Returns the transparent color of the specified TiledImage as a Cell2D
Color, or null if the TiledImage does not have a transparent color.
|