STYLE_RANDOM
For every voxel a randomly chosen block. The chance of a block is its weight divided by the sum of all weights. The random numbers come from the process, like RANDOM, so a program started with a fixed seed draws the same every time.
Parameters and results
blocksARRAY STRUCT c0de_paint/cpaint/BLOCK: the blocks with their weights- result
resultTYPE c0de_paint/cpaint/STYLE: the style
Example
c0de
CALL c0de_paint/cpaint/STYLE_RANDOM
PARAMETER blocks stones ;
RESULT result rubble