Mod

Syntax

mod(โ€œ[spark instance name]โ€, โ€œ[trait display name]โ€, [value])

Return: void

Description

Used for cases where sparkref is overkill. It uses next to no memory and is โ€œon-demand,โ€ meaning it is slower than sparkref but only at scale. The performance hit should be minimal if you are not doing more than ten or more of these in a row.

Sample Usage

Adjust the color trait of a spark called "Spark 1"

mod("Spark 1", "Color", "(1,1,1,1)")

Last updated