class openfl.display.Graphics

Class Fields

static var TILE_ALPHA:Int

static var TILE_BLEND_ADD:Int

static var TILE_ORIGIN:Int

static var TILE_RECT:Int

static var TILE_RGB:Int

static var TILE_ROTATION:Int

static var TILE_SCALE:Int

static var TILE_TRANS_2x2:Int

Instance Fields

function beginBitmapFill(bitmap:BitmapData, ?matrix:Matrix, ?repeat:Bool, ?smooth:Bool): Void

function beginFill(?color:Int, ?alpha:Float): Void

function beginGradientFill(type:GradientType, colors:Array<Int>, alphas:Array<Float>, ratios:Array<Int>, ?matrix:Matrix, ?spreadMethod:SpreadMethod, ?interpolationMethod:InterpolationMethod, ?focalPointRatio:Float): Void

function clear(): Void

function copyFrom(sourceGraphics:Graphics): Void

function cubicCurveTo(controlX1:Float, controlY1:Float, controlX2:Float, controlY2:Float, anchorX:Float, anchorY:Float): Void

function curveTo(controlX:Float, controlY:Float, anchorX:Float, anchorY:Float): Void

function drawCircle(x:Float, y:Float, radius:Float): Void

function drawEllipse(x:Float, y:Float, width:Float, height:Float): Void

function drawGraphicsData(graphicsData:Vector<IGraphicsData>): Void

function drawPath(commands:Vector<Int>, data:Vector<Float>, ?winding:GraphicsPathWinding): Void

function drawRect(x:Float, y:Float, width:Float, height:Float): Void

function drawRoundRect(x:Float, y:Float, width:Float, height:Float, ellipseWidth:Float, ?ellipseHeight:Float): Void

function drawRoundRectComplex(x:Float, y:Float, width:Float, height:Float, topLeftRadius:Float, topRightRadius:Float, bottomLeftRadius:Float, bottomRightRadius:Float): Void

function drawTiles(sheet:Tilesheet, tileData:Array<Float>, ?smooth:Bool, ?flags:Int, ?shader:Shader, ?count:Int): Void

function drawTriangles(vertices:Vector<Float>, ?indices:Vector<Int>, ?uvtData:Vector<Float>, ?culling:TriangleCulling): Void

function endFill(): Void

function lineBitmapStyle(bitmap:BitmapData, ?matrix:Matrix, ?repeat:Bool, ?smooth:Bool): Void

function lineGradientStyle(type:GradientType, colors:Array<Int>, alphas:Array<Float>, ratios:Array<Int>, ?matrix:Matrix, ?spreadMethod:SpreadMethod, ?interpolationMethod:InterpolationMethod, ?focalPointRatio:Float): Void

function lineStyle(?thickness:Float, ?color:Int, ?alpha:Float, ?pixelHinting:Bool, ?scaleMode:LineScaleMode, ?caps:CapsStyle, ?joints:JointStyle, ?miterLimit:Float): Void

function lineTo(x:Float, y:Float): Void

function moveTo(x:Float, y:Float): Void