day end
This commit is contained in:
@@ -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 ??
|
||||
|
||||
Reference in New Issue
Block a user