Add color rendering
This commit is contained in:
parent
d88ef81a02
commit
f6007b90c8
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue