summaryrefslogtreecommitdiff
path: root/py/binary.c
diff options
context:
space:
mode:
authorMat Booth <mat.booth@gmail.com>2022-07-13 21:09:51 +0100
committerDamien George <damien@micropython.org>2022-08-19 23:31:28 +1000
commit04a655c74488128a2c1af9ba8f29fce5e5bbfef9 (patch)
tree78e228b4784ba8b2a7c72175216860a4e2e48d5c /py/binary.c
parent42ec9703a07d1d0b55091f5557ff5f81c5134fb8 (diff)
extmod/modframebuf: Add polygon drawing methods.
Add method for drawing polygons. For non-filled polygons, uses the existing line-drawing code to render arbitrary polygons using the given coords list, at the given x,y position, in the given colour. For filled polygons, arbitrary closed polygons are rendered using a fast point-in-polygon algorithm to determine where the edges of the polygon lie on each pixel row. Tests and documentation updates are also included. Signed-off-by: Mat Booth <mat.booth@gmail.com>
Diffstat (limited to 'py/binary.c')
0 files changed, 0 insertions, 0 deletions