| Method | Defined by | ||
|---|---|---|---|
|
aaCircle(bmp:BitmapData, px:Number, py:Number, r:int, c:Number):void
[static]
Draw an anti-aliased circle
| Raster | ||
|
aaLine(bmp:BitmapData, x1:int, y1:int, x2:int, y2:int, c:Number):void
[static]
Draw an anti-aliased line
| Raster | ||
|
circle(bmp:BitmapData, px:int, py:int, r:int, c:Number):void
[static]
Draw a circle
| Raster | ||
|
circleLine(bmp:BitmapData, x0:int, y0:int, x1:int, y1:int, r:int, c:Number):void
[static]
Draw a line of width w
| Raster | ||
|
cubicBezier(bmp:BitmapData, x0:int, y0:int, x1:int, y1:int, x2:int, y2:int, x3:int, y3:int, c:Number, resolution:int = 5):void
[static]
Draws a Cubic Bezier Curve
TODO: Determine whether x/y params would be better named as anchor/control
| Raster | ||
|
filledCircle(bmp:BitmapData, px:int, py:int, r:int, c:Number, fill:Number = -1):void
[static]
Draw a filled circle
| Raster | ||
|
filledTri(bmp:BitmapData, x0:int, y0:int, x1:int, y1:int, x2:int, y2:int, c:Number):void
[static]
Draw a filled triangle
| Raster | ||
|
line(bmp:BitmapData, x0:int, y0:int, x1:int, y1:int, c:Number):void
[static]
Draw a line
| Raster | ||
|
quadBezier(bmp:BitmapData, x0:int, y0:int, x1:int, y1:int, x2:int, y2:int, c:Number, resolution:int = 3):void
[static]
Draws a Quadratic Bezier Curve (equivalent to a DisplayObject's graphics#curveTo)
TODO: Determine whether x/y params would be better named as anchor/control
| Raster | ||
|
rectangle(bmd:BitmapData, x:int, y:int, w:int, h:int, lw:int, lc:Number, c:Number):void
[static]
Draw a square of width w
| Raster | ||
|
squareLine(bmp:BitmapData, x0:int, y0:int, x1:int, y1:int, w:int, c:Number):void
[static]
Draw a line of with w
| Raster | ||
|
triangle(bmp:BitmapData, x0:int, y0:int, x1:int, y1:int, x2:int, y2:int, c:Number):void
[static]
Draw a triangle
| Raster | ||
| aaCircle | () | method |
public static function aaCircle(bmp:BitmapData, px:Number, py:Number, r:int, c:Number):voidDraw an anti-aliased circle
Parametersbmp:BitmapData — bitmap to draw (alpha=true)
|
|
px:Number — first point x coord
|
|
py:Number — first point y coord
|
|
r:int — radius
|
|
c:Number — color (0xaarrvvbb)
|
| aaLine | () | method |
public static function aaLine(bmp:BitmapData, x1:int, y1:int, x2:int, y2:int, c:Number):voidDraw an anti-aliased line
Parametersbmp:BitmapData — bitmap to draw (alpha=true)
|
|
x1:int — first point x coord
|
|
y1:int — first point y coord
|
|
x2:int — second point x coord
|
|
y2:int — second point y coord
|
|
c:Number — color (0xaarrvvbb)
|
| circle | () | method |
public static function circle(bmp:BitmapData, px:int, py:int, r:int, c:Number):voidDraw a circle
Parametersbmp:BitmapData — bitmap to draw (alpha=true)
|
|
px:int — first point x coord
|
|
py:int — first point y coord
|
|
r:int — radius
|
|
c:Number — color (0xaarrvvbb)
|
| circleLine | () | method |
public static function circleLine(bmp:BitmapData, x0:int, y0:int, x1:int, y1:int, r:int, c:Number):voidDraw a line of width w
Parametersbmp:BitmapData — bitmap to draw (alpha=true)
|
|
x0:int — first point x coord
|
|
y0:int — first point y coord
|
|
x1:int — second point x coord
|
|
y1:int — second point y coord
|
|
r:int — width
|
|
c:Number — color (0xaarrvvbb)
|
| cubicBezier | () | method |
public static function cubicBezier(bmp:BitmapData, x0:int, y0:int, x1:int, y1:int, x2:int, y2:int, x3:int, y3:int, c:Number, resolution:int = 5):voidDraws a Cubic Bezier Curve TODO: Determine whether x/y params would be better named as anchor/control
Parametersbmp:BitmapData — BimtapData to draw on (alpha set to true)
|
|
x0:int — x position of first anchor
|
|
y0:int — y position of first anchor
|
|
x1:int — x position of control point
|
|
y1:int — y position of control point
|
|
x2:int — x position of second control point
|
|
y2:int — y position of second control point
|
|
x3:int — x position of second anchor
|
|
y3:int — y position of second anchor
|
|
c:Number — color
|
|
resolution:int (default = 5) — [optional] determines the accuracy of the curve's length (higher number = greater accuracy = longer process)
|
| filledCircle | () | method |
public static function filledCircle(bmp:BitmapData, px:int, py:int, r:int, c:Number, fill:Number = -1):voidDraw a filled circle
Parametersbmp:BitmapData — bitmap to draw (alpha=true)
|
|
px:int — first point x coord
|
|
py:int — first point y coord
|
|
r:int — radius
|
|
c:Number — color (0xaarrvvbb)
|
|
fill:Number (default = -1) |
| filledTri | () | method |
public static function filledTri(bmp:BitmapData, x0:int, y0:int, x1:int, y1:int, x2:int, y2:int, c:Number):voidDraw a filled triangle
Parametersbmp:BitmapData — Bitmap to draw
|
|
x0:int — first point x coord
|
|
y0:int — first point y coord
|
|
x1:int — second point x coord
|
|
y1:int — second point y coord
|
|
x2:int — third point x coord
|
|
y2:int — third point y coord
|
|
c:Number — color (0xaarrvvbb)
|
| line | () | method |
public static function line(bmp:BitmapData, x0:int, y0:int, x1:int, y1:int, c:Number):voidDraw a line
Parametersbmp:BitmapData — bitmap to draw (alpha=true)
|
|
x0:int — first point x coord
|
|
y0:int — first point y coord
|
|
x1:int — second point x coord
|
|
y1:int — second point y coord
|
|
c:Number — color (0xaarrvvbb)
|
| quadBezier | () | method |
public static function quadBezier(bmp:BitmapData, x0:int, y0:int, x1:int, y1:int, x2:int, y2:int, c:Number, resolution:int = 3):voidDraws a Quadratic Bezier Curve (equivalent to a DisplayObject's graphics#curveTo) TODO: Determine whether x/y params would be better named as anchor/control
Parametersbmp:BitmapData — BimtapData to draw on (alpha set to true)
|
|
x0:int — x position of first anchor
|
|
y0:int — y position of first anchor
|
|
x1:int — x position of control point
|
|
y1:int — y position of control point
|
|
x2:int — x position of second anchor
|
|
y2:int — y position of second anchor
|
|
c:Number — color
|
|
resolution:int (default = 3) — [optional] determines the accuracy of the curve's length (higher number = greater accuracy = longer process)
|
| rectangle | () | method |
public static function rectangle(bmd:BitmapData, x:int, y:int, w:int, h:int, lw:int, lc:Number, c:Number):voidDraw a square of width w
Parametersbmd:BitmapData — bitmap to draw (alpha=true)
|
|
x:int — upperleft point x coord
|
|
y:int — upperleft point y coord
|
|
w:int — width
|
|
h:int — height
|
|
lw:int — outline width
|
|
lc:Number — outline color (0xaarrggbb)
|
|
c:Number — fill color (0xaarrggbb)
|
| squareLine | () | method |
public static function squareLine(bmp:BitmapData, x0:int, y0:int, x1:int, y1:int, w:int, c:Number):voidDraw a line of with w
Parametersbmp:BitmapData — bitmap to draw (alpha=true)
|
|
x0:int — first point x coord
|
|
y0:int — first point y coord
|
|
x1:int — second point x coord
|
|
y1:int — second point y coord
|
|
w:int — width
|
|
c:Number — color (0xaarrvvbb)
|
| triangle | () | method |
public static function triangle(bmp:BitmapData, x0:int, y0:int, x1:int, y1:int, x2:int, y2:int, c:Number):voidDraw a triangle
Parametersbmp:BitmapData — Bitmap to draw
|
|
x0:int — first point x coord
|
|
y0:int — first point y coord
|
|
x1:int — second point x coord
|
|
y1:int — second point y coord
|
|
x2:int — third point x coord
|
|
y2:int — third point y coord
|
|
c:Number — color (0xaarrvvbb)
|