const graphics = @import("root.zig"); pub const Canvas = struct { const Self = @This(); width: u32, height: u32, buffer: []volatile graphics.Color, pub fn fill(self: *const Canvas, color: graphics.Color) void { @memset(self.buffer, color); } };