Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Handfish/confetty_rs
/ functions
Functions
50 in github.com/Handfish/confetty_rs
⨍
Functions
50
◇
Types & classes
13
↓ 5 callers
Method
position
Position returns the position of the projectile.
src/projectile.rs:44
↓ 4 callers
Method
get_simulation_state
(&mut self)
src/app.rs:99
↓ 4 callers
Method
velocity
Velocity returns the velocity of the projectile.
src/projectile.rs:49
↓ 3 callers
Method
remove_indices_from_particles
(&mut self, i: Vec<usize>)
src/simulation_confetti.rs:74
↓ 3 callers
Method
update
Update updates the position and velocity values for the given projectile. Call this after calling NewProjectile to update values.
src/projectile.rs:33
↓ 2 callers
Method
quit
Set running to false to quit the application.
src/app.rs:68
↓ 2 callers
Function
sample_character
Sample a random element from the array
src/simulation_shooting_star.rs:23
↓ 1 callers
Method
draw
[`Draw`] the terminal interface by [`rendering`] the widgets. [`Draw`]: ratatui::Terminal::draw [`rendering`]: crate::ui:render
src/tui.rs:53
↓ 1 callers
Method
exit
Exits the terminal interface. It disables the raw mode and reverts back the terminal properties.
src/tui.rs:71
↓ 1 callers
Function
handle_key_events
Handles the key events and updates the state of [`App`].
src/handler.rs:5
↓ 1 callers
Method
init
Initializes the terminal interface. It enables the raw mode and sets terminal properties.
src/tui.rs:32
↓ 1 callers
Method
next
Receive the next event from the handler thread. This function will always block the current thread if there is no data available and it's possible fo
src/event.rs:76
↓ 1 callers
Function
render
Renders the user interface widgets.
src/ui.rs:10
↓ 1 callers
Function
sample_character
Sample a random element from the array
src/simulation_confetti.rs:15
↓ 1 callers
Function
sample_character
Sample a random element from the array
src/simulation_fireworks.rs:22
↓ 1 callers
Function
sample_color
()
src/simulation_confetti.rs:19
↓ 1 callers
Function
sample_color
()
src/simulation_shooting_star.rs:29
↓ 1 callers
Function
sample_color
()
src/simulation_fireworks.rs:28
↓ 1 callers
Method
set_area
(&mut self, area: Rect)
src/app.rs:76
↓ 1 callers
Method
spawn_explosion_particles
(&mut self, color: Color, x: f32, y: f32)
src/simulation_fireworks.rs:99
↓ 1 callers
Method
spawn_explosion_particles_x_bounds
( &mut self, color: Color, x: f32, y: f32, angle: f32, vel: Ve
src/simulation_shooting_star.rs:142
↓ 1 callers
Method
spawn_explosion_particles_y_bounds
( &mut self, color: Color, x: f32, y: f32, angle: f32, vel: Ve
src/simulation_shooting_star.rs:182
↓ 1 callers
Method
spawn_particles
(&mut self)
src/app.rs:80
↓ 1 callers
Method
tick
Handles the tick event of the terminal.
src/app.rs:59
Method
acceleration
Acceleration returns the acceleration of the projectile.
src/projectile.rs:54
Method
default
()
src/app.rs:25
Method
fireworks
()
src/app.rs:41
Method
get_area
(&self)
src/app.rs:72
Function
main
()
src/main.rs:19
Method
new
(width: usize)
src/simulation_confetti.rs:25
Method
new
(width: usize, height: usize)
src/simulation_shooting_star.rs:35
Method
new
Constructs a new instance of [`App`].
src/app.rs:37
Method
new
(width: usize, height: usize)
src/simulation_fireworks.rs:34
Method
new
Constructs a new instance of [`EventHandler`].
src/event.rs:34
Method
new
( delta_time: f32, initial_position: Point2<f32>, initial_velocity: Vector2<f32>,
src/projectile.rs:17
Method
new
Constructs a new instance of [`Tui`].
src/tui.rs:25
Method
new_explosion
(color: Color, x: f32, y: f32, v: f32, i: f32)
src/simulation_fireworks.rs:57
Method
new_explosion_x_bounds
(color: Color, x: f32, y: f32, v: f32, i: f32)
src/simulation_shooting_star.rs:96
Method
new_explosion_y_bounds
(color: Color, x: f32, y: f32, v: f32, i: f32)
src/simulation_shooting_star.rs:71
Method
remove_indices_from_particles
(&mut self, i: Vec<usize>)
src/simulation_shooting_star.rs:222
Method
remove_indices_from_particles
(&mut self, i: Vec<usize>)
src/simulation_fireworks.rs:108
Method
render
(self, area: Rect, buf: &mut Buffer, state: &mut Self::State)
src/system.rs:17
Method
reset
Resets the terminal interface. This function is also used for the panic hook to revert the terminal properties if unexpected errors occur.
src/tui.rs:62
Method
shooting_star
()
src/app.rs:50
Method
spawn_particles
(&mut self, width: usize)
src/simulation_confetti.rs:66
Method
spawn_particles
(&mut self, width: usize, height: usize)
src/simulation_shooting_star.rs:136
Method
spawn_particles
(&mut self, width: usize, height: usize)
src/simulation_fireworks.rs:93
Method
tick
(&mut self)
src/simulation_confetti.rs:60
Method
tick
(&mut self)
src/simulation_shooting_star.rs:130
Method
tick
(&mut self)
src/simulation_fireworks.rs:87