Path: blob/master/SLICK_HOME/src/org/newdawn/slick/ShapeFill.java
1456 views
package org.newdawn.slick;12import org.newdawn.slick.geom.Shape;3import org.newdawn.slick.geom.Vector2f;45/**6* A filling method for a shape. This allows changing colours at shape verticies and7* modify they're positions as required8*9* @author kevin10*/11public interface ShapeFill {1213/**14* Get the colour that should be applied at the specified location15*16* @param shape The shape being filled17* @param x The x coordinate of the point being coloured18* @param y The y coordinate of the point being coloured19* @return The colour that should be applied based on the control points of this gradient20*/21public Color colorAt(Shape shape, float x, float y);2223/**24* Get the offset for a vertex at a given location based on it's shape25*26* @param shape The shape being filled27* @param x The x coordinate of the point being drawn28* @param y The y coordinate of the point being drawn29* @return The offset to apply to this vertex30*/31public Vector2f getOffsetAt(Shape shape, float x, float y);32}333435