golden-rainbow ( num-colors saturation luminance -- colors )


Vocabulary
colors.hsv

Inputs
num-colorsan object
saturationan object
luminancean object


Outputs
colorsan object


Definition


: golden-rainbow
( num-colors saturation luminance -- colors )
[ random-unit ] 3dip
[ [ [ 0.618033988749895 + 1.0 mod dup ] ] dip ] dip
[ 1.0 <hsva> ] 2curry compose replicate nip ;