wasm4fun-graphics 0.1.0

Graphics primitives and subsystems for WASM-4 fantasy console
Documentation
// Copyright Claudio Mattera 2022.
//
// Distributed under the MIT License or the Apache 2.0 License at your option.
// See the accompanying files License-MIT.txt and License-Apache-2.0.txt, or
// online at
// https://opensource.org/licenses/MIT
// https://opensource.org/licenses/Apache-2.0

//! Graphics primitives and subsystems for WASM-4 fantasy console

#![no_std]

pub use wasm4fun_core::SCREEN_SIZE;

mod assets;

mod drawcolors;
pub use drawcolors::{get_drawing_colors, set_drawing_colors, set_one_drawing_color};

mod geometry;
pub use geometry::{draw_horizontal_line, draw_line, draw_point, draw_rect, draw_vertical_line};

mod palette;
pub use palette::Palette;

mod sprite;
pub use sprite::{Rotation, Sprite, SpriteView, SpriteViewImpl};

mod text;
pub use text::{draw_4x4_text, draw_centered_4x4_text, draw_centered_text, draw_text};