simple-canvas 0.1.1

A simple generic 2 dimensional canvas struct
Documentation
  • Coverage
  • 70%
    7 out of 10 items documented0 out of 6 items with examples
  • Size
  • Source code size: 6.26 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.4 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Remi-Godin/simple-canvas
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Remi-Godin

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.