benilla-re systems structs docs

ParticleGradientSetColors

function · models · orchestration

Address
0x7b9d50 · 70 bytes, up to 0x7b9d95
Meaning
Stores a gradient's start and end colours and the four channel deltas
Confidence
verified, proof one
Finding
models/particles#gradients

Finding: Gradients in models: particles

Two gradients colour a particle, over ages 0 to mid·L and mid·L to L (L the lifespan, at least 0.001; mid record +0x14c). Within a span t0 to t1, f = (age − t0)/(t1 − t0)·0.99 + 0.005, unclamped. A channel is c0 + (c1 − c0)·f, alpha times the instance alpha; the size s0 + (s1 − s0)·f; a cell a + n·f, or a + n·g with g = fmod(f·repeat, 1) when the repeat is not 1, and a range p to q gives a = p, n = q − p + 1 for q ≥ p, else a = p + 1, n = q − p − 1; bytes take (x + 512) >> 14.

gradientcolourssizeshead cellstail cellsrepeat
0+0x150 to +0x154+0x15c to +0x160+0x168, +0x16a+0x174, +0x176+0x16c
1+0x154 to +0x158+0x160 to +0x164+0x16e, +0x170+0x178, +0x17a+0x172

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.