added gradient shader logic to trapezoids
This commit is contained in:
@@ -21,7 +21,7 @@ namespace UwU {
|
||||
// Draw a rectangle
|
||||
void draw (Buffer buffer, Color color) {
|
||||
if (x > buffer.width || y > buffer.height) {return;};
|
||||
buffer.drawPixel(Coord2(x, y), color);
|
||||
buffer.drawPixel(x, y, color);
|
||||
return;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user