Closed sucongCJS closed 2 years ago
The code just samples some colors in the hsv color space (the three for loops) and converts them to rgb (the loop body). It was just the first method I tried that resulted in distinct colors. Yes two views can get the same color since the number of these distinct colors is limited (the product of the loop ranges).
thanks for your reply! I get it now.
why generate colors like this? is it some kind of algorithm? if so, what is the name of the algorithm? is it possible that two adjacent patches have same color? looking forward to you reply, thanks!