Message Boards Message Boards

GROUPS:

Random mandalas generation

Posted 7 months ago
1670 Views
|
5 Replies
|
10 Total Likes
|

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 .)

5 Replies

Very cool stuff!

Thank you, Sander!

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!

Thank you for the recognition, Moderation Team!

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

TexturizePolygonsPost

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