Skip to content
This repository was archived by the owner on Dec 21, 2018. It is now read-only.
This repository was archived by the owner on Dec 21, 2018. It is now read-only.

Improve color values storing. #28

@Gvin

Description

@Gvin

"Instead of recording the actual color value, 1, 16, 4096, etc, you could store the color as exponent of 2.
2^X where X is from 0 to 15 would give you from white(1) to black(32768) and all the colors between.
To convert back from the color value to X, you could use math.log(color)/math.log(2)"

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions