---
title: "The Dadras Attractor · generative art"
description: "Generative systems with chaotic behavior. Generative art plate #5 by Theodore Vorillas, drawn live in your browser from its equations."
url: "https://vorillaz.com/lab/dadras-attractor"
---

![](https://vorillaz.com/_astro/dadras-attractor.BwUKO1Aw_Z2pBVJB.webp)

fig. #05 · rendered live in your browser from the equations below

# #05 the dadras attractor

Generative systems with chaotic behavior.

- date

  2019.04.11

- tags

  generative-art · javascript

- fork

  [codepen ↗](https://codepen.io/TheodoreVorillas/pen/LvWKGp)

The Dadras or Dadras-Momemi Attractor looks like a complex wave trapped into three dimensions. It can be used to describe a Wang 3-scroll chaotic system. The most interesting part about the Dadras attractor though is that the system can accept random values within a range as parameters and generate interesting shapes with chaotic behavior.

## Demo simulation

[](https://media.giphy.com/media/QU97uV1ZAqEKrVqW1C/source.mp4)

## The algorithm

```javascript title="dadras-attractor.js"
const getRandomArbitrary = (min, max) => {
  return Math.random() * (max - min) + min;
};

const a = getRandomArbitrary(2, 3);
const b = getRandomArbitrary(1.9, 2.7);
const c = getRandomArbitrary(1.3, 1.7);
const d = getRandomArbitrary(1.2, 2);
const e = getRandomArbitrary(7, 9);

const next = (x,y,z) => {
  const dx = y - a * x + b * y * z;
  const dy = c * y - x * z + z;
  const dz = d * x * y - e * z;
  return {dx,dy,dz};
};
```

## References

- [Analysis of a new 3D smooth autonomous system with different wing chaotic attractors and transient chaos](https://link.springer.com/article/10.1007/s11071-010-9726-2)
