Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/damoonrashidi/generative-art
/ functions
Functions
159 in github.com/damoonrashidi/generative-art
⨍
Functions
159
◇
Types & classes
32
Method
generate
Generate the svg in memory
src/svg/document.rs:101
Function
get_all_items
()
src/shapes/pointmap.rs:270
Function
get_bounding_box
()
src/shapes/path.rs:263
Function
get_index
()
src/shapes/pointmap.rs:183
Function
get_neighbors
()
src/shapes/pointmap.rs:228
Function
get_neighbors_edgecase
()
src/shapes/pointmap.rs:249
Method
get_random_color
(&self)
src/palette/weighted_palette.rs:39
Function
get_surrounding_cells
()
src/shapes/pointmap.rs:287
Function
insert_point
()
src/shapes/pointmap.rs:199
Function
insert_point_fail
()
src/shapes/pointmap.rs:214
Method
instersects_any
True if a given circle intersects any other circle in the, otherwise false
src/shapes/circle.rs:57
Method
intersects
Check if two lines intersect at any point.
src/shapes/path.rs:88
Function
main
()
src/bin/forces_ui.rs:5
Function
main
()
src/bin/nightfall.rs:3
Function
main
()
src/bin/piet.rs:5
Function
main
()
src/bin/wildlands_ui.rs:5
Function
main
()
src/bin/grid.rs:5
Function
main
()
src/bin/piet_ui.rs:5
Function
main
()
src/bin/grid_ui.rs:3
Function
main
()
src/bin/forces.rs:3
Function
main
()
src/bin/wildlands.rs:3
Method
new
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
Method
new
Create a new blob at a given {position} with a given @radius
src/shapes/blob.rs:45
Method
new
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
Method
new
Create a new Rectangle where the top-left corner will be located at the given position.
src/shapes/rectangle.rs:52
Method
new
Create new [`Path`] with the given [`Point`]s and [`PathStyle`]
src/shapes/path.rs:38
Method
new
Create a new weighted color palette Example ``` use generative_art::{palette::{Palette, color::Color, weighted_palette::WeightedPale
src/palette/weighted_palette.rs:33
Method
new
Create a new color palette Example ``` use generative_art::palette::{Palette, color::Color, simple_palette::SimplePalette}; let
src/palette/simple_palette.rs:30
Method
new
(bounds: Vec<Rectangle>)
src/palette/regional_palette.rs:25
Method
new
()
src/paintings/grid/config.rs:16
Method
new
()
src/paintings/nightfall/config.rs:48
Method
new
()
src/paintings/piet/config.rs:20
Method
new
()
src/paintings/forces/config.rs:78
Method
new
(name: &'static str, bounds: Rectangle)
src/svg/document.rs:49
Method
new
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
Function
non_equality
()
src/shapes/point.rs:106
Function
offset
()
src/shapes/point.rs:120
Method
offset_mut
offsets the current point, in place.
src/shapes/point.rs:44
Method
orange_autumn
Vibrant Orange, red, off-white against a dark background
src/palette/palettes.rs:11
Method
peaches_and_cream
Pastelly pinks, orange, red
src/palette/palettes.rs:25
Function
point_inside_polygon
()
src/shapes/path.rs:291
Method
red_white_black
black and white against red
src/palette/palettes.rs:51
Function
render
()
src/svg/group.rs:135
Function
scale_rect_down
()
src/shapes/rectangle.rs:279
Function
scale_rect_up
()
src/shapes/rectangle.rs:253
Method
set_color
Set the color of the rectangle.
src/shapes/rectangle.rs:62
Method
split_horizontally
( rect: &Rectangle, split_point: &Point, padding: f64, )
src/shapes/rectangle.rs:132
Method
split_line
(line: Vec<Point>, use_gap: bool)
src/paintings/forces/ui.rs:43
Method
split_vertically
( rect: &Rectangle, split_point: &Point, padding: f64, )
src/shapes/rectangle.rs:151
Method
spring_break
Blue, white, yellow
src/palette/palettes.rs:38
Function
test_center_0_0
()
src/shapes/rectangle.rs:305
Function
test_center_other
()
src/shapes/rectangle.rs:312
Function
test_gen_random
()
src/transforms/gen_weighted.rs:67
Method
update
(&mut self, ctx: &eframe::egui::Context, _frame: &mut eframe::Frame)
src/paintings/wildlands/ui.rs:55
Method
update
(&mut self, ctx: &eframe::egui::Context, _frame: &mut eframe::Frame)
src/paintings/grid/ui.rs:51
Method
update
(&mut self, ctx: &eframe::egui::Context, _frame: &mut eframe::Frame)
src/paintings/piet/ui.rs:50
Method
update
(&mut self, ctx: &eframe::egui::Context, _frame: &mut eframe::Frame)
src/paintings/forces/ui.rs:88
Method
wild
()
src/palette/palettes.rs:62
Method
wobble
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
← previous
101–159 of 159, ranked by callers