ArrowHead

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

  • Create a 10x20 arrowhead shape var arrowHead:ArrowHead = new ArrowHead(10, 20); Create a 10x20 6-pixel thick, red arrowhead shape, with 50% transparency, aligned to center var arrowHead:ArrowHead = new ArrowHead(10, 20, 6, 0xFF0000, .5, true);

Summary

Constructor
  • ArrowHead (w:Number, h:Number, strokeThickness:int = 3, strokeColor:uint = 0x000000, strokeAlpha:Number = 1, alignToCenter:Boolean = false)

Constructor

ArrowHead

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