Bresenham tasks in ATS: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
Line 1,150: | Line 1,150: | ||
$ ./a.out</pre> |
$ ./a.out</pre> |
||
The program should create Portable Pixel Map files <code>some_lines.ppm</code>, <code>some_circles.ppm</code>, <code>some_quadratics.ppm</code>, and <code>some_cubics.ppm</code>: |
|||
⚫ | |||
⚫ | |||
[[File:Bresenham tasks ATS some circles.png|alt=A circle and parts of circles, drawn as outlines in multiple colors.]] |
|||
[[File:Bresenham tasks ATS some quadratics.png|alt=An oval made of four quadratic splines, each spline in a different color, with an aqua background.]] |
|||
[[File:Bresenham tasks ATS some cubics.png|alt=Cubic splines in multiple colors. There is a variety of cusps, inflections, self-intersections, closedness, and sometimes not the whole spline fits in the window.]] |