Crate texel_types Copy item path Source BoundsIntoIterator Bounds iterator that returns Position2D elements contained in given area Dimension 2D dimension of up to 16bit size Position 3D position Position2D 2D position SceneV1 Previous scene version == V1 SceneV2 Current scene version == V2 Sprite Sprite represents a 2D ASCII art picture with frame animation SpriteV1 Previous version of the sprite for re-import in scene only Texel Base building block, “textual pixel” consisting of coordinates, symbol, styles and colors Bounds Two dimensional boundary consisting of Position2D
and Dimension
Bounds can be either free standing or binding ColorMode ColorMode enum for background/foreground selection Direction Describes a direction Scene Scene is the final serialization artifact for texel_types.
As such it needs to be versioned explicitly so it can be known which version
of the serialized scene we’re deserializing from files. This enum wrapper
will hold any version of the scene object to provide forward compatibility. SymbolStyle Symbol styles enum Translation Describes the translation operation Which Generic “which” selector for selections etc. DEFAULT_BG_U8 Default background color for sprites DEFAULT_FG_U8 Default foreground color for sprites SPRITE_MAX_BYTES 256 * 256 ascii chars maximum texels_from_str Create a Texels vector from &str write_to_texels Writes given &str to Texels list starting at given position
NOTE - does not expand the list, if EOL would be reached false it returned SymbolStyles Set of SymbolStyle
Texels Vector of Texels