mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Apply hosted formatting to the brush pixel regression
This commit is contained in:
1 parent
6b728336b2
commit
15078a06e1
1 file changed
+1
-8
@@ -8,14 +8,7 @@ use crate::{BrushSettings, StrokePoint, render_stroke};
|
||||
fn paint(noise: bool, hardness: f32, seed: u64) -> Surface {
|
||||
let brush = BrushSettings { size: 60.0, hardness, noise, seed, ..BrushSettings::default() };
|
||||
let mut surface = Surface::new(PixelFormat::RGBA32F);
|
||||
render_stroke(
|
||||
&mut surface,
|
||||
&brush,
|
||||
&[StrokePoint::new(100.0, 100.0, 1.0), StrokePoint::new(400.0, 100.0, 1.0)],
|
||||
None,
|
||||
false,
|
||||
1.0,
|
||||
);
|
||||
render_stroke(&mut surface, &brush, &[StrokePoint::new(100.0, 100.0, 1.0), StrokePoint::new(400.0, 100.0, 1.0)], None, false, 1.0);
|
||||
surface
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user