Skip to content

Instantly share code, notes, and snippets.

View esidegallery's full-sized avatar

Timothy John esidegallery

  • e side gallery
  • Swansea, UK
View GitHub Profile
@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
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//