Bresenham tasks in ATS: Difference between revisions

no edit summary
(Created page with "The following tasks are implemented here in ATS: * Bitmap/Bresenham's_line_algorithm * Bitmap/Midpoint_circle_algorithm * Bitmap/Bézier_curves/Quadratic * Bitmap/Bézier_curves/Cubic You will also need the source files from Bitmap#ATS and Bitmap/Write_a_PPM_file#ATS. ===The ATS static file=== The following file should be named <code>bitmap_bresenham_tasks.sats</code>. <syntaxhighlight lang="ats"> #define ATS_PACKNAME "Rosetta_Code.bresenham...")
 
No edit summary
Line 1,149:
<pre>$ patscc -std=gnu2x -g -O2 -DATS_MEMALLOC_LIBC -DATS BITMAP_BRESENHAM_TASKS_TEST bitmap_{bresenham_tasks,{,write_ppm_}task}.{s,d}ats -lm
$ ./a.out</pre>
 
[[File:Bresenham tasks ATS some lines.png|alt=Straight lines in multiple colors, drawn by Bresenham's algorithm|Some lines drawn by Bresenham's algorithm]]
1,448

edits