Creates a circular game object.
Example - 2
cfg.Game;
function OnLoad()
{
circle = gfx.CreateCircle( 0.4, 0xff1133, 6, 0x7799ff );
}
function OnReady()
{
gfx.AddGraphic( circle, 0.3, 0.2 );
gfx.Play();
}
def OnLoad():
global circle
circle = gfx.CreateCircle( 0.4, 0xff1133, 6, 0x7799ff )
def OnReady():
gfx.AddGraphic( circle, 0.3, 0.2 )
gfx.Play()
Properties
The following properties are available on the Circle object:
alpha →
Number: fraction (0..1)
angle →
Number: fraction (0..1)
height →
Number: fraction (0..1)
pivotX →
Number: fraction (0..1)
pivotY →
Number: fraction (0..1)
Methods
The following methods are available on the Circle object:
all types
String
Number: hexadecimal 0xrrggbb
Number: fraction (0..1)
Number: pixel
Object: Matrix
cir.alpha
The objects alpha value
cir.angle
The rotation fraction of the object
cir.Contains
Checks if a point is contained in the sprite
cir.data
An object for saving individual extra properties.
cir.graphic
the PIXI graphic
cir.group
The objects group identifier
cir.height
The height of the object
cir.pivotX
The x pivot for rotations
cir.pivotY
The y pivot for rotations
cir.scaleX
The horizontal scaling
cir.scaleY
The vertical scaling
cir.SetMatrix
Set the individual 2d transformation
cir.Update
Updates internal properties
cir.visible
Indicates the objects visibility state
cir.width
The obects width