Skip to content

Instantly share code, notes, and snippets.

@PrimaryFeather
PrimaryFeather / QuadSection.as
Last active May 8, 2018 11:10
A Starling Mesh that displays a slice of a quad (just like a pie chart, but rectangular). Useful e.g. for a circular progress indicator.
package starling.extensions
{
import flash.geom.Point;
import starling.display.Mesh;
import starling.rendering.IndexData;
import starling.rendering.VertexData;
import starling.textures.Texture;
public class QuadSection extends Mesh