Add 2022-03-08.

This commit is contained in:
Bauke 2024-02-26 13:34:21 +01:00
parent cc535c7067
commit 76bb398836
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 35 additions and 1 deletions

View File

@ -6,5 +6,9 @@ pub mod year_2022;
/// Get all [`Project`]s in a single [`Vec`].
pub fn all_projects() -> Vec<Project> {
vec![year_2022::day_2022_03_06(), year_2022::day_2022_03_07()]
vec![
year_2022::day_2022_03_06(),
year_2022::day_2022_03_07(),
year_2022::day_2022_03_08(),
]
}

View File

@ -111,3 +111,33 @@ pub fn day_2022_03_07() -> Project {
turn_off_alpha: false,
}
}
/// The project made on 2022-03-08.
pub fn day_2022_03_08() -> Project {
Project {
create_input_image: false,
name: "2022-03-08".to_string(),
operations: vec![
DiffractionPatterns::default()
.with_height(1080)
.with_width(1920)
.boxed(),
TileSeamless::default().boxed(),
StereographicProjection::default().boxed(),
Newsprint::default()
.with_color_model(NewsprintColorModel::Cmyk)
.with_period(4.0)
.boxed(),
FocusBlur::default()
.with_blur_radius(9.72)
.with_blur_type(FocusBlurType::Lens)
.with_focus(0.0)
.with_highlight_factor(0.924)
.with_radius(1.173)
.with_shape(FocusBlurShape::Circle)
.boxed(),
],
resolution: (1920, 1080),
turn_off_alpha: false,
}
}