diff options
feat: describe the font's pattern
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs index 0f51f4e..3d9c225 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,8 +30,8 @@ pub fn main() { let mut i = 0; 'running: loop { i = (i + 1) % 255; - - canvas.set_draw_color(Color::RGB(255, 255, 255)); + + canvas.set_draw_color(Color::RGB(12, 12, 12)); canvas.clear(); let mut offset: f32 = 0.0; @@ -43,13 +43,13 @@ pub fn main() { .to_texture(&texture_creator, Color::RGB(i, 64, 255 - i)) .unwrap(), None, - char.to_rect(offset as i32, 0), + char.to_rect(offset as i32 + 16, 16), ) .unwrap(); offset += char.advance_width; } offset = 0.0; - for c in "All hail Blahaj".chars() { + for c in "Cum 2 Cosin25 :3".chars() { let char = FONT_GALMURI.get_char(c); canvas .copy( @@ -57,7 +57,7 @@ pub fn main() { .to_texture(&texture_creator, Color::RGB(i, 64, 255 - i)) .unwrap(), None, - char.to_rect(offset as i32, 40), + char.to_rect(offset as i32 + 18, 16+36), ) .unwrap(); offset += char.advance_width; |