Archimedean spiral: Difference between revisions
Content added Content deleted
m (→{{header|Quackery}}: fast graphics) |
(Frink) |
||
Line 1,152: | Line 1,152: | ||
Output is [http://funwithsoftware.org/images/2016-SpiralFrege.png here] due to [[User talk:Short Circuit#Is file uploading blocked forever?|Is file uploading blocked forever?]] |
Output is [http://funwithsoftware.org/images/2016-SpiralFrege.png here] due to [[User talk:Short Circuit#Is file uploading blocked forever?|Is file uploading blocked forever?]] |
||
=={{header|Frink}}== |
|||
<syntaxhighlight lang="frink">p = new polyline |
|||
g = new graphics |
|||
a = 1 |
|||
b = 1 |
|||
for theta = 0 to 10 circle step 1 degree |
|||
{ |
|||
r = a + b theta |
|||
x = r cos[theta] |
|||
y = r sin[theta] |
|||
p.addPoint[x,-y] |
|||
} |
|||
g.add[p] |
|||
g.show[] |
|||
g.write["ArchimedeanSpiralFrink.svg",800,800]</syntaxhighlight> |
|||
[[File:ArchimedeanSpiralFrink.svg|400 px]] |
|||
=={{header|Go}}== |
=={{header|Go}}== |