Class cc.Particle

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.Particle(pos, startPos, color, deltaColor, size, deltaSize, rotation, deltaRotation, timeToLive, atlasIndex, modeA, modeB)
Structure that contains the values of each particle

Class Detail

cc.Particle(pos, startPos, color, deltaColor, size, deltaSize, rotation, deltaRotation, timeToLive, atlasIndex, modeA, modeB)
Structure that contains the values of each particle
Parameters:
{cc.Point} pos Optional, Default: cc.PointZero()
Position of particle
{cc.Point} startPos Optional, Default: cc.PointZero()
{cc.Color4F} color Optional, Default: cc.Color4F(0, 0, 0, 1)
{cc.Color4F} deltaColor Optional, Default: cc.Color4F(0, 0, 0, 1)
{cc.Size} size Optional, Default: 0
{cc.Size} deltaSize Optional, Default: 0
{Number} rotation Optional, Default: 0
{Number} deltaRotation Optional, Default: 0
{Number} timeToLive Optional, Default: 0
{Number} atlasIndex Optional, Default: 0
{cc.Particle.ModeA} modeA Optional
{cc.Particle.ModeA} modeB Optional

Field Detail

<static> cc.Particle.TemporaryPoints
Array of Point instances used to optimize particle updates