Crate trender

Source
Expand description

This is a simple(ish) graphics library that runs in the terminal. Repository: https://github.com/Forged-Dyslexic/Trender Author: https://github.com/QuantumLoopHole

Traits§

CenterCell
A trait to provide center functionality for integer values.
FCenterCell
A trait to provide center functionality for floating point values.

Functions§

cell
Draws a square pixel on the terminal.
center
Centers the given coordinates by adding offsets from the provided array.
clear
Clears the terminal screen.
d2_map_cell
Maps out 2D coordinates by converting floating-point values to terminal positions.
d2_path
Draws a 2D line (path) between pairs of points on the terminal.
fill_colum_cell
Fills a column of the terminal with a specific color using square pixels.
fill_colum_real_cell
Fills a column of the terminal with a specific color using “real” cells.
fill_row_cell
Fills an entire row of the terminal with a specific color.
fill_screen_cell
Fills the entire terminal screen with a specific color.
real_cell
Draws a “real” pixel in the terminal.
rgb
Creates an RGB color.
row_test_cell
Fills a specific row of the terminal with random colors.
screen_test_cell
Fills the screen with random colors.
show_curser
Shows the cursor in the terminal.
square
Draws a square given bottom-left and top-right coordinates with specified line and fill colors.
thread_sleep_mil
Sleeps the current thread for a specified number of milliseconds.