Crate wasm4fun_graphics

Source
Expand description

Graphics primitives and subsystems for WASM-4 fantasy console

Structs§

Sprite
A 1-bps or 2-bps bitmap drawable on screen
SpriteViewImpl
A view of a modified sprite

Enums§

Palette
Screen palette
Rotation
Rotation

Constants§

SCREEN_SIZE
Width and height of the screen in pixels

Traits§

SpriteView
A generic view over a sprite or a sprite transformation

Functions§

draw_4x4_text
Draw text with 4×4 font using the current colours
draw_centered_4x4_text
Draw centered text with 4×4 font using the current colours
draw_centered_text
Draw centered text using the current colours
draw_horizontal_line
Draw a horizontal line using the current colours
draw_line
Draw a line using the current colours
draw_point
Draw a vertical using the current colours
draw_rect
Draw a rectangle using the current colours
draw_text
Draw text using the current colours
draw_vertical_line
Draw a vertical using the current colours
get_drawing_colors
Get all colours
set_drawing_colors
Set all colours
set_one_drawing_color
Set colour for a specific palette index