Is there a general fill() function?
Posted: Sat Apr 19, 2014 8:08 pm
I am working on a game concept where I need to draw a lot of trapezoids.
I would like to fill four lines to form a solid trapezoid.
Something like this:
Is there a general fill() function or something similar?
I would like to fill four lines to form a solid trapezoid.
Something like this:
- Code: Select all
gb.display.beginPath();
gb.display.drawLine(xStart, yStart, xEnd, yEnd); //line1
gb.display.drawLine(xStart, yStart, xEnd, yEnd); //line2
gb.display.drawLine(xStart, yStart, xEnd, yEnd); //line3
gb.display.drawLine(xStart, yStart, xEnd, yEnd); //line4
gb.display.fill();
Is there a general fill() function or something similar?