Getting image data from Sprite is still stubbed. I left it stubbed because I'm pretty sure sprites should be exported as an array of palette indices, just like the data representation is. But the current implementation is expecting a Uint8 of colors.
Not sure about a path forwards - maybe a method like getCData(): string (along with getHeaderData(), etc.) that returns the properly formatted string of the object data in c.
Getting image data from Sprite is still stubbed. I left it stubbed because I'm pretty sure sprites should be exported as an array of palette indices, just like the data representation is. But the current implementation is expecting a Uint8 of colors.
Not sure about a path forwards - maybe a method like
getCData(): string
(along withgetHeaderData()
, etc.) that returns the properly formatted string of the object data in c.