This commit is contained in:
jonathan santis
2024-10-30 14:56:09 +01:00
parent 1634f96817
commit acb8e8163d
2 changed files with 16 additions and 18 deletions

View File

@@ -24,6 +24,15 @@ pub const Triangle = struct {
bufc: *i32,
};
pub const Polygon = struct{
const Node = struct{point:Point,*Node};
head: *Node;
length: u32;
pub fn new() Node {
return Node
pub fn pixel(buffer: []u8, w: Winsize, x: i64, y: i64, symbol: u21) !void {
const i: usize = @intCast(4 * (x + y * w.ws_col));
if (i < buffer.len) { //-1 ??