Graphics
package flash.display
Available on flash
Constructor
new()
Variables
readGraphicsData:(recurse:Bool) ‑> Vector<IGraphicsData> = { recurse : true }
Methods
beginBitmapFill(bitmap:BitmapData, ?matrix:Matrix, repeat:Bool = true, smooth:Bool = false):Void
beginFill(color:UInt, alpha:Float = 1):Void
beginGradientFill(type:GradientType, colors:Array<UInt>, alphas:Array<Dynamic>, ratios:Array<Dynamic>, ?matrix:Matrix, ?spreadMethod:SpreadMethod, ?interpolationMethod:InterpolationMethod, focalPointRatio:Float = 0):Void
beginShaderFill(shader:Shader, ?matrix:Matrix):Void
clear():Void
copyFrom(sourceGraphics:Graphics):Void
cubicCurveTo(controlX1:Float, controlY1:Float, controlX2:Float, controlY2:Float, anchorX:Float, anchorY:Float):Void
curveTo(controlX:Float, controlY:Float, anchorX:Float, anchorY:Float):Void
drawCircle(x:Float, y:Float, radius:Float):Void
drawEllipse(x:Float, y:Float, width:Float, height:Float):Void
drawGraphicsData(graphicsData:Vector<IGraphicsData>):Void
drawPath(commands:Vector<Int>, data:Vector<Float>, ?winding:GraphicsPathWinding):Void
drawRect(x:Float, y:Float, width:Float, height:Float):Void
drawRoundRect(x:Float, y:Float, width:Float, height:Float, ellipseWidth:Float, ellipseHeight:Float = 0):Void
drawRoundRectComplex(x:Float, y:Float, width:Float, height:Float, topLeftRadius:Float, topRightRadius:Float, bottomLeftRadius:Float, bottomRightRadius:Float):Void
drawTriangles(vertices:Vector<Float>, ?indices:Vector<Int>, ?uvtData:Vector<Float>, ?culling:TriangleCulling):Void
endFill():Void
lineBitmapStyle(bitmap:BitmapData, ?matrix:Matrix, repeat:Bool = true, smooth:Bool = false):Void
lineGradientStyle(type:GradientType, colors:Array<UInt>, alphas:Array<Dynamic>, ratios:Array<Dynamic>, ?matrix:Matrix, ?spreadMethod:SpreadMethod, ?interpolationMethod:InterpolationMethod, focalPointRatio:Float = 0):Void
lineShaderStyle(shader:Shader, ?matrix:Matrix):Void
lineStyle(thickness:Float = 0, color:UInt = 0, alpha:Float = 1, pixelHinting:Bool = false, ?scaleMode:LineScaleMode, ?caps:CapsStyle, ?joints:JointStyle, miterLimit:Float = 3):Void
lineTo(x:Float, y:Float):Void
moveTo(x:Float, y:Float):Void
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/flash/display/Graphics.html