-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Technically this makes the actual colors a client concern. However, it also allows the client to have a different color palette an easy way. The main reason for doing this however, was reducing payload size, in preparation for the drawing gallery, to reduce memory usage when saving drawings and potentially persisting them. We might also change this to a binary format, as it'll be much smaller, given the amount of JSON overhead. A minimum line event will currently have a size of 70b, while in binary, it would only have 11 bytes, if we don't microoptimise (less is possible).
- Loading branch information
1 parent
f688fb5
commit 20055f2
Showing
5 changed files
with
212 additions
and
254 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.