Example color logic using 4 keys, 4 tweens, totalColors 16
totalColors including Bizarro colors is 30
finding color 8 :
Key Colors : 00 __ __ __ __ 05 __ __ __ __ 10 __ __ __ __ 158 / Tweens+1 = 1.6
Actual Colors : 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15
Bizarro Colors : 29 28 27 26 25 24 23 22 21 20 19 18 17 16
Array
(
[0] => Array
(
[0] => 87
[1] => 0
[2] => 0
)
[1] => Array
(
[0] => 87
[1] => 206
[2] => 105
)
[2] => Array
(
[0] => 79
[1] => 255
[2] => 184
)
[3] => Array
(
[0] => 18
[1] => 255
[2] => 250
)
[4] => Array
(
[0] => 0
[1] => 255
[2] => 214
)
)
Another example: ?keys=4&tweens=6