Parallelism (Drawing Circles)
By rhodium
Wed, 29 Sep 2004
- 489 reads
Parallelism By Salim Meghani
An algorithm to draw in parallel:
This algorithm simulates the drawing of circles in parallel.
Could it be used as an algorithm to simulate parallelism?
For x equals zero to 2 lots of pi step pi divided by forty five.
Let d equal 320 plus 70 times sine of x.
Let e equal 160 plus 50 times cosine of x.
For k equals zero to 2 lots of pi step pi divided by eight.
Let x1 equal d plus 90 times cosine of k,
Let y equal e plus 90 times sine of k.
Draw a circle at x1,y of size 2
Next k loop
Next x loop
- Log in to post comments