From db34e69cdf7ca27431d2fc6214f904495a6c960d Mon Sep 17 00:00:00 2001 From: Savanni D'Gerinel Date: Sun, 3 Nov 2024 13:12:48 -0500 Subject: [PATCH] Make the text larger --- cyber-slides/src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cyber-slides/src/main.rs b/cyber-slides/src/main.rs index 831d7d0..e658030 100644 --- a/cyber-slides/src/main.rs +++ b/cyber-slides/src/main.rs @@ -128,12 +128,12 @@ impl Animation for CrossFade { let frames = (now - self.start_time).as_secs_f64() * FPS as f64; let alpha = alpha_rate * frames as f64; - let text_display = Text::new(self.old_text.clone(), context, 32., width); + let text_display = Text::new(self.old_text.clone(), context, 64., width); let _ = context.move_to(0., text_display.extents().height()); let _ = context.set_source_rgba(PURPLE.0, PURPLE.1, PURPLE.2, 1. - alpha); text_display.draw(); - let text_display = Text::new(self.new_text.clone(), context, 32., width); + let text_display = Text::new(self.new_text.clone(), context, 64., width); let _ = context.move_to(0., text_display.extents().height()); let _ = context.set_source_rgba(PURPLE.0, PURPLE.1, PURPLE.2, alpha); text_display.draw();