Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Triangle Rasterization? #1

Open
ekiwi opened this issue Jan 5, 2016 · 2 comments
Open

Triangle Rasterization? #1

ekiwi opened this issue Jan 5, 2016 · 2 comments

Comments

@ekiwi
Copy link

ekiwi commented Jan 5, 2016

Are you planning on adding a function to rasterize triangles?

@salkinium
Copy link
Owner

Planning, yes, but I've got no timeline for it.
For drawing the outline, you can already use lines though.

So the bigger picture here is polygon filling, which can then also be used to fill triangles.
Perhaps a specialized function for triangle filling is appropriate though.
Line with a thickness can also be implemented using polygon filling, similarly Circles with line thickness, etc.

The painter class is definitely not final, it's only there so to hold the drawing algorithms.
Nothing about the API is final, anything can be changed there, you can add stuff there if you like.
The graphic context should not be in the painter class but in a separate data structure to be compatible with the API of the FT8XX series graphic chips.

@salkinium
Copy link
Owner

Btw, this is the set of graphics functions I'd like to see implemented here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants