picolo 0.3.7

A simple crate for breaking down images into its bareboned data. Uses the fantastic image crate.
Documentation
<!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">
    <!--[if lte IE 8]>
    <div class="warning">
        This old browser is unsupported and will most likely display funky
        things.
    </div>
    <![endif]-->

    
    <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&#39;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">&quot;images/icon.png&quot;</span>; 
<span class="kw">let</span> <span class="ident">bar_str</span> <span class="op">=</span> <span class="kw-2">&amp;</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">&quot;x {} y {} red {} green {} blue: {}&quot;</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>