output-poits
Hsv
Rgb
transform
for i := 1; i < in.size; i += 1
i++
normalize
normalise
y := out.first
if x <= in.first: y = out.first
y/num := ?
reduce
transform
in.reduce: | previous current |
if x <= current:
x-norm/float := normalise x.to-float previous current
return scale x-norm previous current
current // Use 'current' as the next previous.
y := in.reduce: | previous current |
if x <= current:
x-norm/float := normalize x.to-float previous current
scale x-norm previous current
else:
current
return
_
_