growthFront

A spreading boundary in .x that creeps outward from seeded cells (.x = 1 from init or a splat) at rate cells per second.

growthFront(config: {rate: OpArg; roughness?: OpArg; reverse?: OpArg}): GrowthFrontOp

Import op from shaders/std and use op.growthFront.

reverse (0 or 1, a prop is fine) makes it retreat.

Parameters

NameTypeNotes
config{rate: OpArg; roughness?: OpArg; reverse?: OpArg}

Example

op.growthFront({rate: 6, roughness: 0.6, reverse: p('melt')})