From 5e160663e22ba876851b9556ec5ea8b54d162165 Mon Sep 17 00:00:00 2001 From: Bauke Date: Thu, 29 Feb 2024 13:45:06 +0100 Subject: [PATCH] Add 2022-03-14. --- interlinked/source/projects/mod.rs | 1 + interlinked/source/projects/year_2022/mod.rs | 35 ++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/interlinked/source/projects/mod.rs b/interlinked/source/projects/mod.rs index a252b1f..f858ff4 100644 --- a/interlinked/source/projects/mod.rs +++ b/interlinked/source/projects/mod.rs @@ -15,5 +15,6 @@ pub fn all_projects() -> Vec { year_2022::day_2022_03_11(), year_2022::day_2022_03_12(), year_2022::day_2022_03_13(), + year_2022::day_2022_03_14(), ] } diff --git a/interlinked/source/projects/year_2022/mod.rs b/interlinked/source/projects/year_2022/mod.rs index 9e022e6..08567a9 100644 --- a/interlinked/source/projects/year_2022/mod.rs +++ b/interlinked/source/projects/year_2022/mod.rs @@ -332,3 +332,38 @@ pub fn day_2022_03_13() -> Project { turn_off_alpha: false, } } + +/// The project made on 2022-03-14. +pub fn day_2022_03_14() -> Project { + Project { + create_input_image: false, + name: "2022-03-14".to_string(), + operations: vec![ + DiffractionPatterns::default() + .with_height(2160) + .with_width(3840) + .boxed(), + Mirrors::default() + .with_n_segs(7) + .with_o_x(0.347) + .with_o_y(0.1) + .with_r_angle(13.0) + .with_trim_x(0.051) + .with_trim_y(0.253) + .boxed(), + Cartoon::default() + .with_mask_radius(50.0) + .with_pct_black(1.0) + .boxed(), + MedianBlur::default().with_radius(5.0).boxed(), + Edge::default() + .with_algorithm(EdgeAlgorithm::PrewittCompass) + .with_amount(10.0) + .with_border_behavior(AbyssPolicy::Clamp) + .boxed(), + MedianBlur::default().with_radius(5.0).boxed(), + ], + resolution: (3840, 2160), + turn_off_alpha: false, + } +}