EllipseShape

Kind of class: public class
Package:
Inherits from:
  • Sprite
Author: John Polacek, john@johnpolacek.com
Classpath: com.johnpolacek.shapes.EllipseShape
File last modified: Saturday, 11 September 2010, 16:38:21
EllipseShape class is used to quickly create Elliptical sprites
Example

  • Create a 50x50 circle var circle:EllipseShape = new EllipseShape(50); Create a 200x50 ellipse with a 50% transparent black fill, a 3-pixel red stroke, aligned to center var ellipse:EllipseShape = new EllipseShape(200, 50, 0x000000, .5, 3, 0xFF0000, 1, true);

Summary

Constructor
  • EllipseShape (w:Number, h:Number, fillColor:uint = 0x000000, fillAlpha:Number = 1, strokeThickness:int, strokeColor:uint = 0x000000, strokeAlpha:Number = 1, alignToCenter:Boolean = false)
Instance methods

Constructor

EllipseShape

function EllipseShape(w:Number, h:Number, fillColor:uint = 0x000000, fillAlpha:Number = 1, strokeThickness:int, strokeColor:uint = 0x000000, strokeAlpha:Number = 1, alignToCenter:Boolean = false)

Instance methods

alignToCenter

function alignToCenter() : void