Wolfram Language

Algebra and Number Theory

Tweet-a-Program

AnglePath and CirclePoints can produce aesthetic results in compact pieces of code, ideal for Wolfram Tweet-a-Program. These are examples of tweets by users of the Wolfram Language.

TaP example 1.

In[1]:=
Click for copyable input
Graphics@{NestList[ Rotate[#, Pi/2, {0, 4 Pi}] &, {Brown, Polygon@AnglePath@ Tuples[Table[t^2 Sin[t^2 + t]/.5, {t, 0, Pi/5, 0.01}], 2]}, 3]}
Out[1]=

TaP example 2.

In[2]:=
Click for copyable input
Graphics[{Polygon[ AnglePath[Tuples[Table[Sin@t/8, {t, 0, 5 E/8, .03}], 2]], VertexColors -> Table[Hue[i/3250], {i, 3250}]]}]
Out[2]=

TaP example 3.

In[3]:=
Click for copyable input
Graphics@{EdgeForm@Red, Pink, Polygon@AnglePath@ Tuples[Table[t^2 Sin[t^2 - t]/.5, {t, 0, Pi/5, .0105}], 2]}
Out[3]=

TaP example 4.

In[4]:=
Click for copyable input
k = Tuples[Range[-2, 2, .15], {2}]; Graphics@{BSplineCurve@Sin@CirclePoints[#, .14, 25] & /@ k, Red, Point@Sin@CirclePoints[#, .15, 2] & /@ k}
Out[4]=

Related Examples

de es fr ja ko pt-br ru zh