tetris/src/graphics.rs

15 lines
603 B
Rust

use sdl2::pixels::Color;
pub const CELL_SIZE: u32 = 32;
pub const BORDER_RADIUS: u32 = 1;
pub static COLOR_BACKGROUND: Color = Color::RGB(60, 60, 60);
pub static COLOR_CYAN: Color = Color::RGB(0, 255, 255);
pub static COLOR_YELLOW: Color = Color::RGB(255, 255, 0);
pub static COLOR_PURPLE: Color = Color::RGB(255, 0, 255);
pub static COLOR_GREEN: Color = Color::RGB(0, 255, 0);
pub static COLOR_RED: Color = Color::RGB(255, 0, 0);
pub static COLOR_BLUE: Color = Color::RGB(0, 0, 255);
pub static COLOR_ORANGE: Color = Color::RGB(255, 127, 0);
pub static COLOR_GRAY: Color = Color::RGB(100, 100, 100);