8c03ddbb7a
Currently all lines are a single pixel wide. To draw wider lines we must draw two parallel lines with a single pixel offset and this is a *very* inefficient approach, espeically on ST7789 where we spend longer setting the clipping window than we do drawing each pixel. Fix this by constructing a line using a variable sized square rather than a single pixel. This will "overdraw" (some pixels will be drawn more than once) but since square blocks can be efficiently transferred to the display the overdraw is acceptable. Note: It is a difficult decision whether to maintain the convention that color is the last argument or to keep compatibility with existing line drawing tests. This patch opts for the former and fixes up all uses within the existing codebase. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk> |
||
---|---|---|
.. | ||
alarm.py | ||
clock.py | ||
demo.py | ||
fibonacci_clock.py | ||
flashlight.py | ||
gameoflife.py | ||
haiku.py | ||
heart.py | ||
hello.py | ||
launcher.py | ||
musicplayer.py | ||
pager.py | ||
settings.py | ||
snake.py | ||
steps.py | ||
stopwatch.py | ||
template.py | ||
testapp.py |