Packagestencyl.api.engine
Classpublic class Graphics
InheritanceGraphics Inheritance Object



Public Properties
 PropertyDefined By
  alpha : uint
Graphics
  blendMode : String
Graphics
  _color : uint
Graphics
  color : uint
Graphics
  _ct : ColorTransform
Graphics
  defaultFont : Font
[static]
Graphics
  fc : uint = 0x00ffffff
Graphics
  font : Font
Graphics
  x : int
Graphics
  y : int
Graphics
Public Methods
 MethodDefined By
  
Graphics
  
addPointToCurve(controlX:Number, controlY:Number, anchorX:Number, anchorY:Number):void
Graphics
  
addPointToPolygon(x:Number, y:Number):void
Graphics
  
beginDrawCurve(startX:Number, startY:Number):void
Graphics
  
Graphics
  
beginFillCurve(startX:Number, startY:Number):void
Graphics
  
Graphics
  
drawCircle(xCenter:uint, yCenter:uint, radius:uint):void
Graphics
  
drawImage(img:BitmapData, x:int, y:int, w:int = -1, h:int = -1, overrideAlpha:Boolean = false):void
Graphics
  
drawLine(x1:uint, y1:uint, x2:uint, y2:uint):void
Graphics
  
drawPixel(x:uint, y:uint):void
Graphics
  
drawRect(x:int, y:int, w:int, h:int):void
Graphics
  
drawRoundRect(x:int, y:int, w:int, h:int, arcSize:int):void
Graphics
  
drawString(s:String, x:int = 0, y:int = 0, w:int = 0, alignment:String = left):void
Graphics
  
Graphics
  
Graphics
  
fillCircle(xCenter:uint, yCenter:uint, radius:uint):void
Graphics
  
fillRect(x:int, y:int, w:int, h:int):void
Graphics
  
fillRoundRect(x:int, y:int, w:int, h:int, arcSize:int):void
Graphics
  
getBlendMode():String
Graphics
  
getColor():uint
Graphics
  
Graphics
  
getOpacity():uint
Graphics
  
Graphics
  
Graphics
  
moveTo(x:int, y:int):void
Graphics
  
setBlendMode(blendMode:String):void
Graphics
  
setColor(color:uint):void
Graphics
  
setFont(font:Font):void
Graphics
  
setGradient(startColor:uint, endColor:uint):void
Graphics
  
setOpacity(alpha:uint):void
Graphics
  
setRadialGradient(startColor:uint, endColor:uint):void
Graphics
  
setStrokeColor(color:uint):void
Graphics
  
setStrokeThickness(thickness:Number):void
Graphics
  
translate(x:int, y:int):void
Graphics
  
Graphics
  
Graphics
Property Detail
_colorproperty
public var _color:uint

_ctproperty 
public var _ct:ColorTransform

alphaproperty 
public var alpha:uint

blendModeproperty 
public var blendMode:String

colorproperty 
public var color:uint

defaultFontproperty 
public static var defaultFont:Font

fcproperty 
public var fc:uint = 0x00ffffff

fontproperty 
public var font:Font

xproperty 
public var x:int

yproperty 
public var y:int

Constructor Detail
Graphics()Constructor
public function Graphics()



Method Detail
addPointToCurve()method
public function addPointToCurve(controlX:Number, controlY:Number, anchorX:Number, anchorY:Number):void

Parameters

controlX:Number
 
controlY:Number
 
anchorX:Number
 
anchorY:Number

addPointToPolygon()method 
public function addPointToPolygon(x:Number, y:Number):void

Parameters

x:Number
 
y:Number

beginDrawCurve()method 
public function beginDrawCurve(startX:Number, startY:Number):void

Parameters

startX:Number
 
startY:Number

beginDrawPolygon()method 
public function beginDrawPolygon():void

beginFillCurve()method 
public function beginFillCurve(startX:Number, startY:Number):void

Parameters

startX:Number
 
startY:Number

beginFillPolygon()method 
public function beginFillPolygon():void

drawCircle()method 
public function drawCircle(xCenter:uint, yCenter:uint, radius:uint):void

Parameters

xCenter:uint
 
yCenter:uint
 
radius:uint

drawImage()method 
public function drawImage(img:BitmapData, x:int, y:int, w:int = -1, h:int = -1, overrideAlpha:Boolean = false):void

Parameters

img:BitmapData
 
x:int
 
y:int
 
w:int (default = -1)
 
h:int (default = -1)
 
overrideAlpha:Boolean (default = false)

drawLine()method 
public function drawLine(x1:uint, y1:uint, x2:uint, y2:uint):void

Parameters

x1:uint
 
y1:uint
 
x2:uint
 
y2:uint

drawPixel()method 
public function drawPixel(x:uint, y:uint):void

Parameters

x:uint
 
y:uint

drawRect()method 
public function drawRect(x:int, y:int, w:int, h:int):void

Parameters

x:int
 
y:int
 
w:int
 
h:int

drawRoundRect()method 
public function drawRoundRect(x:int, y:int, w:int, h:int, arcSize:int):void

Parameters

x:int
 
y:int
 
w:int
 
h:int
 
arcSize:int

drawString()method 
public function drawString(s:String, x:int = 0, y:int = 0, w:int = 0, alignment:String = left):void

Parameters

s:String
 
x:int (default = 0)
 
y:int (default = 0)
 
w:int (default = 0)
 
alignment:String (default = left)

endDrawingCurve()method 
public function endDrawingCurve():void

endDrawingPolygon()method 
public function endDrawingPolygon():void

fillCircle()method 
public function fillCircle(xCenter:uint, yCenter:uint, radius:uint):void

Parameters

xCenter:uint
 
yCenter:uint
 
radius:uint

fillRect()method 
public function fillRect(x:int, y:int, w:int, h:int):void

Parameters

x:int
 
y:int
 
w:int
 
h:int

fillRoundRect()method 
public function fillRoundRect(x:int, y:int, w:int, h:int, arcSize:int):void

Parameters

x:int
 
y:int
 
w:int
 
h:int
 
arcSize:int

getBlendMode()method 
public function getBlendMode():String

Returns
String
getColor()method 
public function getColor():uint

Returns
uint
getFont()method 
public function getFont():Font

Returns
Font
getOpacity()method 
public function getOpacity():uint

Returns
uint
getStrokeColor()method 
public function getStrokeColor():uint

Returns
uint
getStrokeThickness()method 
public function getStrokeThickness():Number

Returns
Number
moveTo()method 
public function moveTo(x:int, y:int):void

Parameters

x:int
 
y:int

setBlendMode()method 
public function setBlendMode(blendMode:String):void

Parameters

blendMode:String

setColor()method 
public function setColor(color:uint):void

Parameters

color:uint

setFont()method 
public function setFont(font:Font):void

Parameters

font:Font

setGradient()method 
public function setGradient(startColor:uint, endColor:uint):void

Parameters

startColor:uint
 
endColor:uint

setOpacity()method 
public function setOpacity(alpha:uint):void

Parameters

alpha:uint

setRadialGradient()method 
public function setRadialGradient(startColor:uint, endColor:uint):void

Parameters

startColor:uint
 
endColor:uint

setStrokeColor()method 
public function setStrokeColor(color:uint):void

Parameters

color:uint

setStrokeThickness()method 
public function setStrokeThickness(thickness:Number):void

Parameters

thickness:Number

translate()method 
public function translate(x:int, y:int):void

Parameters

x:int
 
y:int

translateToActor()method 
public function translateToActor(a:Actor):void

Parameters

a:Actor

translateToScreen()method 
public function translateToScreen():void