Add a way to omit computing colors for terminal
Refactor generate_gradients.py
Reverse JSON output and add trailing comma

Makes it easier to copy-paste output to colors.json.
Merge pull request #913 from ZyX-I/improve-generate_gradients

Improve generate_gradients.py script