gameContainer.getGraphics().setColor(convertToSlickColor(color));
gameContainer.getGraphics().fillRect(x, y, width, height);
}
public void renderQuad(final int x, final int y, final int width, final int height, final Color topLeft, final Color topRight, final Color bottomRight, final Color bottomLeft) {
GradientFill gradient = null;
if (sameColor(topLeft, topRight)) {
gradient = new GradientFill(x, y, convertToSlickColor(topLeft), x, y + height, convertToSlickColor(bottomLeft));
} else {
gradient = new GradientFill(x, y, convertToSlickColor(topLeft), x + width, y, convertToSlickColor(bottomRight));
}
Rectangle rect = new Rectangle(x, y, width, height);
gameContainer.getGraphics().fill(rect, gradient);
}