Make all Color constructors const 🎉

This commit is contained in:
Héctor Ramón Jiménez 2025-01-27 01:09:16 +01:00
parent d9a454ac4d
commit ce07acf6fe
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 15 additions and 44 deletions

View file

@ -414,7 +414,7 @@ impl Renderer {
renderer.fill_text(
text.clone(),
Point::new(11.0, 11.0 + 25.0 * i as f32),
Color::new(0.9, 0.9, 0.9, 1.0),
Color::from_rgba(0.9, 0.9, 0.9, 1.0),
Rectangle::with_size(Size::INFINITY),
);