Message Boards Message Boards

Random mandalas generation

Posted 5 years ago

A few weeks ago the Wolfram Function Repository entry RandomMandala was approved. With that entry I won a 2019 Wolfram Technology Conference competition announced here.

Below are given a few examples of multiple RandomMandala executions.

Black-and-white mandalas

SeedRandom[443];
Multicolumn[
 Table[ResourceFunction["RandomMandala"]["Radius" -> 5, 
   "RotationalSymmetryOrder" -> RandomChoice[Range[3, 9]], 
   "ConnectingFunction" -> FilledCurve@*BezierCurve, 
   "SymmetricSeed" -> RandomChoice[{8, 2} -> {True, False}]], 48], 8]

enter image description here

Colorized mandalas

Colorized mandalas are derived in two ways: (1) by coloring the different parts of the seed segment, and (2) by super-imposing mandalas with different radii on top of each other.

Here is an example of the first approach:

SeedRandom[94823]; 
Multicolumn[
 Table[ResourceFunction["RandomMandala"]["Radius" -> 1, 
   "RotationalSymmetryOrder" -> RandomChoice[Range[3, 12]], 
   "ConnectingFunction" -> FilledCurve@*BezierCurve, 
   ColorFunction -> "Rainbow", 
   "SymmetricSeed" -> RandomChoice[{8, 2} -> {True, False}], 
   ImageSize -> Small], 48], 8]

enter image description here

Here is an example of second approach:

SeedRandom[23223]; 
Multicolumn[
 Table[ResourceFunction["RandomMandala"][
   "Radius" -> 
    RandomChoice[{Identity, Log, ArcCot, 
       ArcSec, #^0.618 &, #^1.618 &}][Range[8, 2, -2.]], 
   "RotationalSymmetryOrder" -> RandomChoice[{3, 4, 5, 6, 9, 12}], 
   "ConnectingFunction" -> FilledCurve@*BezierCurve, 
   ColorFunction -> "Rainbow", 
   "SymmetricSeed" -> RandomChoice[{8, 2} -> {True, False}], 
   ImageSize -> Small], 48], 8] 

enter image description here

Some history

For me the mandala generation started with this Mathematica Stackexchange discussion.

I continued using the random mandala generation code for the (scaffolding) testing of different Machine Learning algorithms. ( Here is an example .)

POSTED BY: Anton Antonov
5 Replies

This community post shows further utilization of the RandomMandala function: "3D ornaments (by texturized polygons)".

TexturizePolygonsPost

POSTED BY: Anton Antonov

Thank you for the recognition, Moderation Team!

POSTED BY: Anton Antonov

enter image description here - Congratulations! This post is now featured in our Staff Pick column as distinguished by a badge on your profile of a Featured Contributor! Thank you, keep it coming, and consider contributing your work to the The Notebook Archive!

POSTED BY: EDITORIAL BOARD

Thank you, Sander!

POSTED BY: Anton Antonov

Very cool stuff!

POSTED BY: Sander Huisman
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract