Maps are back and have color now. TileCell needs a rework.

This commit is contained in:
Zed A. Shaw 2025-02-09 14:57:19 -05:00
parent 27bb08d62c
commit a4c13f7fc9
4 changed files with 6 additions and 10 deletions

View file

@ -242,7 +242,7 @@ void System::draw_entities(DinkyECS::World &world, Map &map, const Matrix &light
// the 2 and 4 are from ftxui::Canvas since it does a kind of "subpixel" drawing
canvas.DrawText(loc.x*2, loc.y*4, tile.chr, [tile, light_value, cell](auto &pixel) {
pixel.foreground_color = Color::HSV(tile.fg_h, tile.fg_s, tile.fg_v * light_value);
pixel.foreground_color = Color::HSV(tile.foreground[0], tile.foreground[1], tile.foreground[2] * light_value);
pixel.background_color = Color::HSV(cell.bg_h, cell.bg_s, cell.bg_v * light_value);
});
}