tomassedovic / tcod-rs

Rust bindings for libtcod 1.6.3 (the Doryen library/roguelike toolkit)
Do What The F*ck You Want To Public License
229 stars 45 forks source link

make Color::new a const function #283

Closed ElectricCoffee closed 5 years ago

ElectricCoffee commented 5 years ago

Makes it so that it's possible to write

const LINK_COLOR: Color = Color::new(0x00, 0xCC, 0x00);

Saves the user from using the struct directly.

tomassedovic commented 5 years ago

Thanks!