Mittwoch, 28. Mai 2008

TrapViewer

Because even simple lines were too much for my imagination, I hacked Cairo to output the generated trapezoids and wrote a small java program to parse the data and display it.


Well, now I understand how a line is implemented ... but I never knew that such triangle-trapezoids are valid ;)

So therefore horizontal and vertical lines can be done using FillRect or a single trapezoid, and when rotated we need 3 to create the end-points.

Keine Kommentare: