Decent colorscheme.

This commit is contained in:
KikooDX 2021-01-29 19:10:14 +01:00
parent 16e3620fad
commit e54660228a
1 changed files with 3 additions and 3 deletions

View File

@ -66,8 +66,8 @@ pub fn draw(self: *Self, scale: u16, offset: Vec2) void {
while (cy < self.height) {
const cell_content: cell_t = self.content[cy * self.width + cx];
const color = switch (cell_content) {
0 => ray.GRAY,
1 => ray.RAYWHITE,
0 => ray.BLACK,
1 => ray.GRAY,
else => ray.PURPLE, //unknown
};
ray.DrawRectangle(x + 1, y + 1, scale - 2, scale - 2, color);
@ -91,7 +91,7 @@ pub fn draw_selection(self: *Self, scale: u16, offset: Vec2) void {
var cy: Vec2.int_type = offset.y;
while (cy < self.height) {
if (self.selection[cy * self.width + cx])
ray.DrawRectangleLines(x, y, scale, scale, ray.GREEN);
ray.DrawRectangleLines(x, y, scale, scale, ray.WHITE);
y += scale;
cy += 1;
}