fix: improve alpha rendering on gutter

This commit is contained in:
CJ van den Berg 2024-12-12 19:11:54 +01:00
parent 62a4ec1400
commit fa25d250c6
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 12 additions and 3 deletions

View file

@ -114,6 +114,12 @@ pub fn home(self: *Plane) void {
self.col = 0;
}
pub fn fill(self: *Plane, egc: []const u8) void {
for (0..self.dim_y()) |y|
for (0..self.dim_x()) |x|
self.write_cell(x, y, egc);
}
pub fn fill_width(self: *Plane, comptime fmt: anytype, args: anytype) !usize {
var buf: [fmt.len + 4096]u8 = undefined;
var pos: usize = 0;