Crates.io | croot-gui |
lib.rs | croot-gui |
version | 0.1.0 |
source | src |
created_at | 2023-05-14 23:28:29.944618 |
updated_at | 2023-05-14 23:28:29.944618 |
description | A Rust crate for graphing complex roots and numbers |
homepage | |
repository | https://www.github.com/Ross-Morgan/croot-gui |
max_upload_size | |
id | 864529 |
size | 135,520 |
A Rust crate for graphing complex roots and numbers
This crate is designed to be paired with croot
use croot_gui::prelude::*;
// Complex roots of a function
let roots = vec![ ... ];
// Name of file to generate
let filename = "graph.png";
// Size of image in pixels
let dimensions = (1000, 1000);
// Generate the graph with the selected parameters
generate_graph(roots, filename, dimensions).expect("Failed);
use croot_gui::prelude::*;
// Complex roots of a function
let roots = vec![ ... ];
// Size of image and window in pixels
let dimensions = (1000, 1000);
// Open a window containing the graph generated from the selected parameters
show_graph(roots, dimensions).expect("Failed to ");