summaryrefslogtreecommitdiff
path: root/src/estd/graphics/canvas.zig
blob: 35dba4bd99dc98ee24baa9867bdf65c2b3e208f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
	}
};