<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<title>Picolo</title>
</head>
<body class="rustdoc">
<h1 class="title">Picolo</h1>
<nav id="TOC"><ul>
<li><a href="#implementation">1 Implementation</a><ul></ul></li></ul></nav><p>Image-reading crate for plotting data and transposing image contents into a data structure with the precision decided by the user.</p>
<h1 id="implementation"><a href="#implementation">1 Implementation</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="comment">// Name of image path. In this case it's in a folder called images next to src</span>
<span class="kw">let</span> <span class="ident">foo</span> <span class="op">=</span> <span class="string">"images/icon.png"</span>;
<span class="kw">let</span> <span class="ident">bar_str</span> <span class="op">=</span> <span class="kw-2">&</span><span class="ident">foo</span>;
<span class="kw">let</span> <span class="ident">pixl_struct</span> <span class="op">=</span> <span class="ident">picolo::load_picture</span>(<span class="ident">bar_str</span>);
<span class="comment">// Print all the contents derived from image</span>
<span class="kw">for</span> <span class="ident">i</span> <span class="kw">in</span> <span class="ident">pixl_struct</span> {
<span class="macro">println!</span>(<span class="string">"x {} y {} red {} green {} blue: {}"</span>, <span class="ident">i</span>[<span class="number">0</span>].<span class="ident">x</span>, <span class="ident">i</span>[<span class="number">0</span>].<span class="ident">y</span>,
<span class="ident">i</span>[<span class="number">0</span>].<span class="ident">color</span>.<span class="ident">red</span>, <span class="ident">i</span>[<span class="number">0</span>].<span class="ident">color</span>.<span class="ident">green</span>, <span class="ident">i</span>[<span class="number">0</span>].<span class="ident">color</span>.<span class="ident">blue</span>);
}</code></pre></div>
<p>#TODO:</p>
<ul>
<li>Implement shrinking if dataset is too big (Idea: check the biggest number in a list, check if bigger than bounds, and divide by the difference of list surpassing the bounds eg: if bounds = 1000 and an element in list is 1100 then divide by 10%)
*Convert to uf32 functionality (Floats are just easier to work with)</li>
<li>Add option to draw circles if preferred</li>
<li>Add coloring variation if dataset become too large for the plot</li>
<li>Add line drawing</li>
<li>Add function to open image after the plot has been drawn so the user doesn’t have to</li>
<li>Refactor current way of finding origin with exact positions</li>
</ul>
</body>
</html>