Soothing Mandala-like Animation

Life is stressful. Seems unbelievable, but Mathematica can help us relax after just a few lines of code.
This quite simple piece of code generates animated mandala-like pictures that will calm you down. At least, this works for me :slight_smile:

Animate[Graphics@
  Table[{Thick, Dotted, Hue[r/360, 1, 1, .4], 
    Line[{{Cos[x r Degree], Sin[x r Degree]},
             {Cos[39 r Degree], Sin[ 39 r Degree]}}]}, 
  {r, 0, 360, 1}], 
{x,Select[Range[1, 360], ! IntegerQ[#/3] &]}, 
ControlPlacement -> Top,DefaultDuration -> 360]

39 in the second point of line was chosen by chance. I’ve decided, that 2D parameters are unnecessary. I’ve also decided to skip multiplies of 3 in iterator x, because they produce not so harmonic pictures as others.

I’ve also found some images that look especially fascinating for me (however, there is so much more to explore!)

So turn on some relaxing music…I hope you’ll enjoy it!)

8 Likes

The second one is very neat, can’t figure out the ‘rule’ ! very intricate.

1 Like

This is it:

Graphics@
  Table[{Thick, Dotted, Hue[r/360, 1, 1, .4], 
    Line[{{Cos[31 r Degree], Sin[31 r Degree]},
             {Cos[39 r Degree], Sin[ 39 r Degree]}}]}, 
  {r, 0, 360, 1}]

Also looks great in black and white:

4 Likes

I only knew of these kinds of visualizations:

Graphics[Line[Tuples[N@CirclePoints[17], 2]]]

However yours are much more intricate, very nicely done!

2 Likes

If you can generate an animation that makes people dizzy, you could probably make money selling it to people who need to retrain their vestibulo-ocular reflex, the brain circuitry that coordinates inputs from the various senses.

2 Likes

2015-11-02_10-07-11.png

  • another post of yours has been selected for the Staff Picks group, congratulations !

We are happy to see you at the tops of the “Featured Contributor” board. Thank you for your wonderful contributions, and please keep them coming!

Very nice!

1 Like

Wow! This is great material. You can find many of these crazy-looking animations at the Twitter account “Tweet-a-Program”: Tweet-a-Program (@wolframtap) / X. Mrs. Silvia Torosyan is a frequent contributor; some of her codes are published thereof. :slight_smile:

1 Like

I am not sure how soothing are these, but I do that find them visually intriguing:

SeedRandom[1587];
ResourceFunction["RandomMandala"]["Radius" -> {10, 11, 9}, 
 "RotationalSymmetryOrder" -> Reverse[11*2^Range[3]], 
 "ConnectingFunction" -> FilledCurve@*BezierCurve, 
 ColorFunction -> "DarkRainbow", FaceForm -> {Opacity[0.3]}, 
 EdgeForm -> {Yellow, Opacity[0.6]}, ImageSize -> 1000]

SeedRandom[2344];
ResourceFunction["RandomMandala"]["Radius" -> {8, 10, 6}, 
 "RotationalSymmetryOrder" -> Reverse[5*2^Range[3]], 
 "ConnectingFunction" -> FilledCurve@*BezierCurve, 
 ColorFunction -> "Rainbow", FaceForm -> {Opacity[0.3]}, 
 EdgeForm -> {Yellow, Opacity[0.6]}, ImageSize -> 1000]

5 Likes

Here are animations based on the random mandalas above:

1 Like