2 ms·
The hard part was to do it in a efficient, fast way with the hardware of that time. The solution you propose, seems to work, too, but has a hacky feel. If you
by hutzlibu 5y ago
The hard part was to do it in a efficient, fast way with the hardware of that time.
The solution you propose, seems to work, too, but has a hacky feel. If you work with fixed pixels, it is hard to increase border-radius at will for example.
- bonzini 5y agoLooking at the QuickDraw source, it's exactly what he did[1]. Ovals and roundrects, both solid and hollow, are all handled by a single DrawArc function. Essentially an oval _is_ a round rect whose border radiuses are the entirety of the oval's radiuses. Arcs are also handled by DrawArc, but of course there's a fast path for when start=0 and end=360. [1] https://d1yx3ys82bpsa0.cloudfront.net/102658076_quickdraw_acc.zip https://d1yx3ys82bpsa0.cloudfront.net/102658076_quickdraw_ac...