Hacker News new | ask | show | jobs
by roytanck 1667 days ago
Completely random. It picks a hue value (0-360) and then adds or subtracts a second random value from this for each layer. The maximum value of this increment is relatively small, so the colors are usually similar within the same image.