Phaser.GameObjects. Graphics#
new Graphics(scene [, options])#
1 2 3 4 5 |
|
Extends#
Members#
TargetCamera :Phaser.Cameras.Scene2D.Camera #
active :boolean#
alpha :number#
angle :number#
blendMode :Phaser.BlendModes|string#
body :Phaser.Physics.Arcade.Body|Phaser.Physics.Arcade.StaticBody|MatterJS.BodyType #
cameraFilter :number#
commandBuffer :array#
data :Phaser.Data.DataManager#
defaultFillAlpha :number#
defaultFillColor :number#
defaultPipeline :Phaser.Renderer.WebGL.WebGLPipeline#
defaultStrokeAlpha :number#
defaultStrokeColor :number#
defaultStrokeWidth :number#
depth :number#
displayList :Phaser.GameObjects.DisplayList|Phaser.GameObjects.Layer#
displayOriginX :number#
displayOriginY :number#
hasPostPipeline :boolean#
ignoreDestroy :boolean#
input :Phaser.Types.Input.InteractiveObject #
mask :Phaser.Display.Masks.BitmapMask|Phaser.Display.Masks.GeometryMask#
name :string#
parentContainer :Phaser.GameObjects.Container#
pipeline :Phaser.Renderer.WebGL.WebGLPipeline#
pipelineData :object#
postPipeline :Array. #
renderFlags :number#
rotation :number#
scale :number#
scaleX :number#
scaleY :number#
scene :Phaser.Scene#
scrollFactorX :number#
scrollFactorY :number#
state :number|string#
tabIndex :number#
type :string#
visible :boolean#
w :number#
x :number#
y :number#
z :number#
Methods#
addedToScene()#
addListener(event, fn [, context])#
arc(x, y, radius, startAngle, endAngle [, anticlockwise] [, overshoot])#
beginPath()#
clear()#
clearAlpha()#
clearMask( [destroyMask])#
closePath()#
copyPosition(source)#
createBitmapMask( [renderable])#
createGeometryMask( [graphics])#
destroy()#
disableInteractive()#
emit(event [, args])#
eventNames()#
fill()#
fillCircle(x, y, radius)#
fillCircleShape(circle)#
fillEllipse(x, y, width, height [, smoothness])#
fillEllipseShape(ellipse [, smoothness])#
fillGradientStyle(topLeft, topRight, bottomLeft, bottomRight [, alphaTopLeft] [, alphaTopRight] [, alphaBottomLeft] [, alphaBottomRight])#
渐变填充型
fillPath()#
fillPoint(x, y [, size])#
fillPoints(points [, closeShape] [, closePath] [, endIndex])#
fillPointShape(point [, size])#
fillRect(x, y, width, height)#
fillRectShape(rect)#
fillRoundedRect(x, y, width, height [, radius])#
圆角矩形。
1 2 3 4 |
|
fillStyle(color [, alpha])#
填充型
fillTriangle(x0, y0, x1, y1, x2, y2)#
fillTriangleShape(triangle)#
generateTexture(key [, width] [, height])#
getData(key)#
getIndexList()#
getLocalPoint(x, y [, point] [, camera])#
getLocalTransformMatrix( [tempMatrix])#
getParentRotation()#
getPipelineName()#
getPostPipeline(pipeline)#
getWorldTransformMatrix( [tempMatrix] [, parentMatrix])#
incData(key [, data])#
initPipeline(pipeline)#
lineBetween(x1, y1, x2, y2)#
1 2 3 4 5 6 7 8 9 10 11 |
|
lineGradientStyle(lineWidth, topLeft, topRight, bottomLeft, bottomRight [, alpha])#
lineStyle(lineWidth, color [, alpha])#
轮廓线型。