projf-explore icon indicating copy to clipboard operation
projf-explore copied to clipboard

Triangle outline and fill not congruent

Open WillGreen opened this issue 3 years ago • 0 comments

If we draw a triangle outline and a filled triangle with identical vertices, they don't always match. This seems to be a problem on some edges where there are multiple edge pixels per line.

Library modules:

  • lib/graphics/draw_triangle.sv
  • lib/graphics/draw_triangle_fill.sv

Example - right-edge of this triangle:

vx0 <=  60; vy0 <=  20;
vx1 <= 280; vy1 <=  80;
vx2 <= 160; vy2 <= 164;

More details to follow.

WillGreen avatar Sep 09 '22 20:09 WillGreen