Skip to main content
105 votes

Code that generates a mandala

Here is one way to come up with "mandalas" -- we generate a segment and then by appropriate number of rotations we produce a "mandala". Here is an example function of a random seed segment ...
Anton Antonov's user avatar
68 votes

Code that generates a mandala

For this one I've defined three types of layer, a flower, a simple circle and a ring of small circles. You could add more for greater variety. ...
Simon Woods's user avatar
  • 85.1k
58 votes
Accepted

Generating Doyle spiral painting

TL;DR Yes, this can be done! If you read the article "Hexagonal circle packings and Doyle spirals" by Leys, you will see that for a choice p and ...
halirutan's user avatar
  • 113k
46 votes
Accepted

Draw impossible figure with MMA, how can it be done?

Edit Since TernaryListPlot is new in 13.1 version,for old version,we use ternary[{p1_, p2_, p3_}] = {p1 + 1/2 p2, Sqrt[3]/2 p2}; ...
cvgmt's user avatar
  • 77.6k
44 votes

Drawing Clifford Attractors in Mathematica

Parameters: a = -1.24458; b = -1.25191; c = -1.815908; d = -1.90866; Compiled function used for iteration: ...
Szabolcs's user avatar
  • 236k
36 votes
Accepted

How to create this spikey in Mathematica?

This is probably too slow to get a decent image, but here's a simple attempt. As JM suggests, you can use Geodesate to get a good set of points on the sphere. I ...
Simon Woods's user avatar
  • 85.1k
35 votes
Accepted

Generate landscape by cutting a plane in 3d

My solution does not follow the algorithm you described to the word (I don't choose two random points and find the line equation that runs through them but instead choose a random line equation) but ...
Sascha's user avatar
  • 8,499
33 votes
Accepted

How to generate image like QR code with Mathematica

This version of generation code is originally posted at wolfram community. I guess a story-telling type post would attract more upvotes and probably give some insight about how to 'solve problems' ...
Wjx's user avatar
  • 9,630
33 votes
Accepted

Converting Image to full-length lines

Actually, the algorithm is straightforward, it is perfectly well explained in the video you linked, and I'm not entirely sure why you haven't simply tried it yourself. So what I will provide is a ...
halirutan's user avatar
  • 113k
32 votes
Accepted

Visualize an irrational number

With a pie chart around it: ...
halmir's user avatar
  • 15.2k
30 votes

How can Mathematica be used to create images like these?

Here's something to get the ball rolling: ...
MarcoB's user avatar
  • 67.5k
30 votes

Code that generates a mandala

The point of using machine learning algorithms for generation of mandala images mentioned in the comments of my previous answer is clarified in this blog post: "Comparison of dimension reduction ...
Anton Antonov's user avatar
29 votes

Visualize an irrational number

With help of: (1) how to generate repeatable Unique streams? (2) Color Blend in BezierCurve (3) Is it possible to draw really thin lines in Mathematica? here is something to start: ...
Kuba's user avatar
  • 137k
29 votes

Code that generates a mandala

Completeley trial & error, but you can play around with it to your heart's content: ...
martin's user avatar
  • 8,778
28 votes
Accepted

How can I handle graphics or artworks with millions of points?

As you note, dealing with millions of points in Graphics will be slow to render. The usual approach for dealing with strange attractors of this sort, is to bin the ...
George Varnavides's user avatar
27 votes

How can Mathematica be used to create images like these?

A function to subdivide the triangles based on their gray level: ...
shrx's user avatar
  • 7,817
27 votes

How can Mathematica be used to create images like these?

(These solutions loosely adhere to OP's request in the question. They were mostly made because of similar art/solutions pointed in the comments.) "Delaunay raster" like Here is a solution related to ...
Anton Antonov's user avatar
27 votes
Accepted

How to create a faded image using an existing image file

You could try something like this: with your image, img = Import["https://i.sstatic.net/hf1aj.png"] create some random noise and smooth it, to make the "dirt ...
Niki Estner's user avatar
  • 36.2k
26 votes
Accepted

Generalized Backpropagation for Neural Networks (e.g. DeepDream)

Sebastian mentioned in his answer that deepdream can be possible using NetDerivative. Here are my attempts following his outlines. Instead of using the inception ...
xslittlegrass's user avatar
26 votes

Strategies for creating 3D text

What are some other strategies for creating 3D text in an efficient manner? Here's one way, using MeshRegion[] functionality: ...
J. M.'s missing motivation's user avatar
25 votes
Accepted

Implementing a planetary terrain generation algorithm

Here my two cents. I observed that the major part of the computation is about multiplication. Hence I transformed to logarithms such that we can use summations which can be executed efficiently with <...
Henrik Schumacher's user avatar
24 votes
Accepted

Obtaining a 3D animation as a drop in a liquid surface

Thanks to J.M. ...
Kuba's user avatar
  • 137k
24 votes

Implementing a planetary terrain generation algorithm

I have a basic implementation of this which I use with the output of DiscretizeGraphics: ...
b3m2a1's user avatar
  • 47k
23 votes
Accepted

Strategies for creating 3D text

With a bit more work, we can take a similar approach to J.M.'s answer to build a water tight model with a base. ...
Greg Hurst's user avatar
  • 36.4k
23 votes
Accepted

Paul Klee's Notebooks: Loops Around Control Points

...
azerbajdzan's user avatar
  • 19.9k
23 votes
Accepted

Reproducing Ómar Rayo's "Fresh Fog" Painting

Using a "dirty" gradient. ...
azerbajdzan's user avatar
  • 19.9k
22 votes

How can Mathematica be used to create images like these?

First and foremost, it must be mentioned that in the artist's work, not all possible triangles are drawn from the vertices. There are triangles whose one or more edges consist of more than two ...
Taiki's user avatar
  • 5,279
22 votes
Accepted

How to weave Anni Albers Red Meander carpet?

An attempt: Using CoordinateBoundsArray and FindShortestTour: ...
Syed's user avatar
  • 55.9k
21 votes

3D surface that looks like a virus

Another way to tackle this is to download 3D mesh files of actual viruses. Here is a page with many such files. First you grab the links to STL files: ...
Jason B.'s user avatar
  • 69.2k

Only top scored, non community-wiki answers of a minimum length are eligible