mirror of https://git.sr.ht/~kikoodx/kble
Decent colorscheme.
This commit is contained in:
parent
16e3620fad
commit
e54660228a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue