croot-gui

Crates.iocroot-gui
lib.rscroot-gui
version0.1.0
sourcesrc
created_at2023-05-14 23:28:29.944618
updated_at2023-05-14 23:28:29.944618
descriptionA Rust crate for graphing complex roots and numbers
homepage
repositoryhttps://www.github.com/Ross-Morgan/croot-gui
max_upload_size
id864529
size135,520
Cryptollusion (Ross-Morgan)

documentation

README

Croot-Gui

Build

A Rust crate for graphing complex roots and numbers

Context

This crate is designed to be paired with croot

Examples

Create Graph

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);

Display Graph

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 ");
Commit count: 0

cargo fmt