MCPcopy Create free account

hub / github.com/damoonrashidi/generative-art / functions

Functions159 in github.com/damoonrashidi/generative-art

Methodgenerate
Generate the svg in memory
src/svg/document.rs:101
Functionget_all_items
()
src/shapes/pointmap.rs:270
Functionget_bounding_box
()
src/shapes/path.rs:263
Functionget_index
()
src/shapes/pointmap.rs:183
Functionget_neighbors
()
src/shapes/pointmap.rs:228
Functionget_neighbors_edgecase
()
src/shapes/pointmap.rs:249
Methodget_random_color
(&self)
src/palette/weighted_palette.rs:39
Functionget_surrounding_cells
()
src/shapes/pointmap.rs:287
Functioninsert_point
()
src/shapes/pointmap.rs:199
Functioninsert_point_fail
()
src/shapes/pointmap.rs:214
Methodinstersects_any
True if a given circle intersects any other circle in the, otherwise false
src/shapes/circle.rs:57
Methodintersects
Check if two lines intersect at any point.
src/shapes/path.rs:88
Functionmain
()
src/bin/forces_ui.rs:5
Functionmain
()
src/bin/nightfall.rs:3
Functionmain
()
src/bin/piet.rs:5
Functionmain
()
src/bin/wildlands_ui.rs:5
Functionmain
()
src/bin/grid.rs:5
Functionmain
()
src/bin/piet_ui.rs:5
Functionmain
()
src/bin/grid_ui.rs:3
Functionmain
()
src/bin/forces.rs:3
Functionmain
()
src/bin/wildlands.rs:3
Methodnew
Create a new Circle at given [`point`] with given [`radius`] ``` use generative_art::shapes::{circle::Circle, point::Point}; let circle = Circle::new
src/shapes/circle.rs:27
Methodnew
Create a new blob at a given {position} with a given @radius
src/shapes/blob.rs:45
Methodnew
Create a new map for a given bounds with a list of cells to aid in operations like finding the nearest neighbors or doing collision detections.
src/shapes/pointmap.rs:35
Methodnew
Create a new Rectangle where the top-left corner will be located at the given position.
src/shapes/rectangle.rs:52
Methodnew
Create new [`Path`] with the given [`Point`]s and [`PathStyle`]
src/shapes/path.rs:38
Methodnew
Create a new weighted color palette Example ``` use generative_art::{palette::{Palette, color::Color, weighted_palette::WeightedPale
src/palette/weighted_palette.rs:33
Methodnew
Create a new color palette Example ``` use generative_art::palette::{Palette, color::Color, simple_palette::SimplePalette}; let
src/palette/simple_palette.rs:30
Methodnew
(bounds: Vec<Rectangle>)
src/palette/regional_palette.rs:25
Methodnew
()
src/paintings/grid/config.rs:16
Methodnew
()
src/paintings/nightfall/config.rs:48
Methodnew
()
src/paintings/piet/config.rs:20
Methodnew
()
src/paintings/forces/config.rs:78
Methodnew
(name: &'static str, bounds: Rectangle)
src/svg/document.rs:49
Methodnew
Create a new group to hold shapes. The shapes will inherit the styles from the group, unless explicitly overriden in the shape itself. ```
src/svg/group.rs:104
Functionnon_equality
()
src/shapes/point.rs:106
Functionoffset
()
src/shapes/point.rs:120
Methodoffset_mut
offsets the current point, in place.
src/shapes/point.rs:44
Methodorange_autumn
Vibrant Orange, red, off-white against a dark background
src/palette/palettes.rs:11
Methodpeaches_and_cream
Pastelly pinks, orange, red
src/palette/palettes.rs:25
Functionpoint_inside_polygon
()
src/shapes/path.rs:291
Methodred_white_black
black and white against red
src/palette/palettes.rs:51
Functionrender
()
src/svg/group.rs:135
Functionscale_rect_down
()
src/shapes/rectangle.rs:279
Functionscale_rect_up
()
src/shapes/rectangle.rs:253
Methodset_color
Set the color of the rectangle.
src/shapes/rectangle.rs:62
Methodsplit_horizontally
( rect: &Rectangle, split_point: &Point, padding: f64, )
src/shapes/rectangle.rs:132
Methodsplit_line
(line: Vec<Point>, use_gap: bool)
src/paintings/forces/ui.rs:43
Methodsplit_vertically
( rect: &Rectangle, split_point: &Point, padding: f64, )
src/shapes/rectangle.rs:151
Methodspring_break
Blue, white, yellow
src/palette/palettes.rs:38
Functiontest_center_0_0
()
src/shapes/rectangle.rs:305
Functiontest_center_other
()
src/shapes/rectangle.rs:312
Functiontest_gen_random
()
src/transforms/gen_weighted.rs:67
Methodupdate
(&mut self, ctx: &eframe::egui::Context, _frame: &mut eframe::Frame)
src/paintings/wildlands/ui.rs:55
Methodupdate
(&mut self, ctx: &eframe::egui::Context, _frame: &mut eframe::Frame)
src/paintings/grid/ui.rs:51
Methodupdate
(&mut self, ctx: &eframe::egui::Context, _frame: &mut eframe::Frame)
src/paintings/piet/ui.rs:50
Methodupdate
(&mut self, ctx: &eframe::egui::Context, _frame: &mut eframe::Frame)
src/paintings/forces/ui.rs:88
Methodwild
()
src/palette/palettes.rs:62
Methodwobble
Take a shape and rough it up a bit but adding a bunch of points between each, already existing, point and move those injected points around a bit.
src/shapes/path.rs:50
← previous101–159 of 159, ranked by callers