Class com.sekati.draw.Triangle

Description

Triangle drawing utility.

Method Index

draw()

Method Detail

draw

static public function draw(mc:MovieClip, p1:Point, p2:Point, p3:Point, fillColor:Number, fillAlpha:Number, strokeWeight:Number, strokeColor:Number, strokeAlpha:Number):Void

Draw a triangle in an existing clip

Parameters

mc(Movie Clip) target clip to draw in
p1(Point) first point
p2(Point) second point
p3(Point) third point
fillColor(Number) hex fill, if undefined rectangle will not be filled
fillAlpha(Number) fill alpha transparency [default: 100]
strokeWeight(Number) border line width, if 0 or undefined no border will be drawn
strokeColor(Number) hex border color
strokeAlpha(Number) stroke alpha transparancy [default: 100]

Return

Void

 Usage:
 	var tri:MovieClip = this.createEmptyMovieClip ("tri", this.getNextHighestDepth ());
 	Triangle.draw(tri, new Point(0,30), new Point(30,30), new Point(30,0), 0xff00ff, 100, 1, 0x00ffff, 100);