Instance Property

particleColor

The average initial color for a particle.

Declaration

iOS, Mac Catalyst, tvOS, watchOS
@property(nonatomic, retain) UIColor *particleColor;
macOS
@property(nonatomic, retain) NSColor *particleColor;

Discussion

The default value is [SKColor clearColor].

A particle’s color is blended with the texture using its blend color factor. See Controlling How the Texture is Blended with Particle Color.

See Also

Configuring Particle Color

particleColorSequence

The sequence used to specify the color components of a particle over its lifetime.

particleColorAlphaRange

The range of allowed random values for the alpha component of a particle’s initial color.

particleColorBlueRange

The range of allowed random values for the blue component of a particle’s initial color.

particleColorGreenRange

The range of allowed random values for the green component of a particle’s initial color.

particleColorRedRange

The range of allowed random values for the red component of a particle’s initial color.

particleColorAlphaSpeed

The rate at which the alpha component of a particle’s color changes per second.

particleColorBlueSpeed

The rate at which the blue component of a particle’s color changes per second.

particleColorGreenSpeed

The rate at which the green component of a particle’s color changes per second.

particleColorRedSpeed

The rate at which the red component of a particle’s color changes per second.