Picolo
A very simple Image-reading crate for plotting data and transposing image contents into a detailed data structure with the precision decided by the user. Very, very alpha-stage right now.
Plot: https://imgur.com/a/drPB8e0
Basic plot
// Plotting a 2d Vector
// @Params: x: &u32, y: &u32
use plot_tbl;
Precision explanation: 100 = 100%, 50 = 50% of the pixels iterated over.
Setting up image transpose
// Easiest way to print half the contents
let pixl_struct = load_picture;
for i in pixl_struct
// Accessing all fields:
// @Params: &path as &str, precision as u32 (1 = 100% precision, 2 = 50%, ...)
use load_picture;
let foo = "images/icon.png";
let bar_str = &foo;
let precision = 100;
let pixl_struct = load_picture;
// Print all the contents derived from image
for i in pixl_struct
#TODO:
- Add option to draw circles if preferred (.json file preferably)
- Add coloring variation if dataset become too large for the plot
- Add text above individual datapoints (Display: as '50, 12')
- Add line drawing
- Add function to open image after the plot has been drawn so the user doesn't have to
- Refactor current way of finding origin with more exact positions
- Fix allignment issues