StartColor1
One end of the color range a spark or railgun particle is created at.
- Applies to
- ParticleType
- File
rules.ini- Section
[<ObjectType ID>]- Value
- color (R,G,B)
- When omitted
0,0,0
[MYWELDSPARK] ; a ParticleType registered in [Particles]BehavesLike=SparkMaxEC=500XVelocity=16YVelocity=16ZVelocityRange=15ColorList=(0,128,255),(255,255,255),(80,80,80),(0,0,0)StartColor1=80,255,255 ; each spark is created somewhere between these twoStartColor2=255,255,100ColorSpeed=.13Each new particle starts at a random color on the blend between this color and StartColor2, so a burst is created as a spread of shades instead of one flat color. The value is a plain red,green,blue triplet with no brackets, unlike the entries of ColorList. Each component is held in one byte, so 256 reads as 0.
The starting color takes the place of the first ColorList entry for that particle. The particle blends from it to the list’s second entry, then continues along the list as usual. If both StartColor1 and StartColor2 are black (0,0,0), the particle starts at the list’s first entry instead, as most stock spark and railgun types do.
Only Spark and Railgun particles are drawn in these colors, and only a type with a ColorList picks a starting color at all. Particles of other behaviors draw their artwork and ignore both keys.