Jump to content

Polyspiral: Difference between revisions

Line 37:
Straightforward implementation of the pseudocode, incr and angle are integers and incr is incremented by 5 instead of 0.05 as the % operation in C is not defined for non-integers. Requires the [http://www.cs.colorado.edu/~main/bgi/cs1300/ WinBGIm] library.
<lang C>
/*Abhishek Ghosh, 23rd September 2017*/
 
#include<graphics.h>
#include<math.h>
Line 84 ⟶ 86:
}
</lang>
 
=={{header|C++}}==
This Windows programm has no animation, it will simply save 100 bitmaps onto your harddrive
503

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.