Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PixMap is a generic data structure for manipulating any kind of pixel data - screen, sprite-sheet etc.
PixMap uses a single byte (8 bits) for storing single color/pixel. This means that max 256 colors can be used.
PixMap can also be used for maps which not necessary contain pixel colors, such as world map (as long as only 256 different tiles are used).
This commit replaces pi.Screen and pi.SpriteSheet with pi.PixMap.
PixMap provides also new methods: