simple-canvas

Crates.iosimple-canvas
lib.rssimple-canvas
version0.1.1
sourcesrc
created_at2024-01-30 02:51:34.396899
updated_at2024-01-30 05:19:46.160936
descriptionA simple generic 2 dimensional canvas struct
homepagehttps://github.com/Remi-Godin/simple-canvas
repositoryhttps://github.com/Remi-Godin/simple-canvas
max_upload_size
id1119763
size6,598
Remi Godin (Remi-Godin)

documentation

README

simple-canvas

This crate provides a Canvas struct that is constructed of a single vector, but act as a 2 dimensional matrix. Along with the struct are functions to access its elements by row and column, as well as access to iterators over all elements.

Motivation

I needed a simple struct to act as a 2 dimensional array, mostly for image creation and manipulation. After some testing, I found that using a single vector, as opposed to a vector of vector, is faster, even with the added operations needed to abstract away the access by column and row. This crate provides just this.

Commit count: 0

cargo fmt