Creates a elliptical game object.
Example - 2
cfg.Game;
function OnLoad()
{
ellipse = gfx.CreateEllipse( 0.7, 0.4*gfx.aspect, 0xcccc00, 10, 0xbb00ff );
}
function OnReady()
{
gfx.AddGraphic( ellipse, 0.1, 0.2 );
gfx.Play();
}
def OnLoad():
global ellipse
ellipse = gfx.CreateEllipse(0.7, 0.4*gfx.aspect, 0xcccc00, 10, 0xbb00ff)
def OnReady():
gfx.AddGraphic(ellipse, 0.1, 0.2)
gfx.Play()
Methods
The following methods are available on the Ellipse 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)
String
Number: hexadecimal 0xrrggbb
Number: fraction (0..1)
Number: pixel
Object: Matrix
The objects alpha value
The rotation fraction of the object
elp.Contains
Checks if a point is contained in the sprite
An object for saving individual extra properties.
the PIXI graphic
The objects group identifier
The height of the object
The x pivot for rotations
The y pivot for rotations
The horizontal scaling
The vertical scaling
elp.SetMatrix
Set the individual 2d transformation
elp.Update
Updates internal properties
Indicates the objects visibility state
The obects width