Add color rendering

This commit is contained in:
Dusk 2023-09-22 12:04:16 +02:00
parent d88ef81a02
commit f6007b90c8
1 changed files with 2 additions and 6 deletions

View File

@ -63,12 +63,8 @@ pub fn fillRectangleEx(self: *Self, x: i32, y: i32, w: i32, h: i32, skew_x: i32)
const downLeft = [_]f32{ xf - skew_x_offset, yf + hf };
const downRight = [_]f32{ xf + wf - skew_x_offset, yf + hf };
const color = Color{0,0,0,255};
_ = self;
rl.drawTriangle(upLeft, downLeft, upRight, color);
rl.drawTriangle(downLeft, downRight, upRight, color);
rl.drawTriangle(upLeft, downLeft, upRight, self.color);
rl.drawTriangle(downLeft, downRight, upRight, self.color);
}
pub fn setColor(self: *Self, color: Color) void {