Skip to content

Commit

Permalink
Fmt.
Browse files Browse the repository at this point in the history
  • Loading branch information
tychedelia committed Jul 2, 2024
1 parent f5dee00 commit c7ee0b1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bevy_nannou_draw/src/draw/background.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ where

/// Specify the color via red, green and blue channels.
pub fn srgb(self, r: f32, g: f32, b: f32) -> Self {
self.color(Color::rgb(r, g, b))
self.color(Color::srgb(r, g, b))
}

/// Specify the color via red, green, blue and alpha channels.
Expand Down
1 change: 0 additions & 1 deletion bevy_nannou_draw/src/draw/properties/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ pub trait SetColor: Sized {
self.color(Color::hwba(hue, w, b, a))
}


fn lab(self, l: f32, a: f32, b: f32) -> Self {
self.color(Color::lab(l, a, b))
}
Expand Down
5 changes: 4 additions & 1 deletion generative_design/random_and_noise/m_1_2_01.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ fn view(app: &App, model: &Model) {
let x = nannou::geom::Range::new(random_x, circle_x).lerp(fader_x);
let y = nannou::geom::Range::new(random_y, circle_y).lerp(fader_x);

draw.ellipse().x_y(x, y).w_h(11.0, 11.0).srgb_u8(0, 130, 163);
draw.ellipse()
.x_y(x, y)
.w_h(11.0, 11.0)
.srgb_u8(0, 130, 163);
}
}

Expand Down

0 comments on commit c7ee0b1

Please sign in to comment.