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
- colour (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=.13Written as a plain red,green,blue triplet without brackets, unlike the entries of ColorList. Each new particle picks a color at a random point between this one and StartColor2, interpolating each component separately, so a burst is created as a spread of shades rather than one flat color. Components are held in one byte each and wrap above 255.
The picked color is where the ColorList blend starts: it stands in for the list’s first entry while the particle is still on its first pair, and once the blend steps past that pair it is never used again. Leaving both ends black hands the job to the list’s first entry instead, which is what most of the stock spark and railgun types do. Only Spark and Railgun particles are drawn as the lit pixel that uses the picked color; on every other behavior the pair is read and then never consulted.