# floweroflife

> generates a set of points ( circle centers ) which form the mystical flower of life pattern

Latest version **1.0.1** (published 2016-01-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install floweroflife
pnpm add floweroflife
yarn add floweroflife
bun add floweroflife
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-01-18 |
| First published | 2016-01-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | alexander ovchinnikov |
| Maintainers | 0x80 |
| Keywords | floweroflife |

## Links

- npm: https://www.npmjs.com/package/floweroflife
- Repository: https://github.com/Alexander-0x80/floweroflife.js
- Homepage: https://github.com/Alexander-0x80/floweroflife.js#readme
- Issues: https://github.com/Alexander-0x80/floweroflife.js/issues
- npm.io page: https://npm.io/package/floweroflife

## Recent versions

- 1.0.1 (latest) — 2016-01-18
- 1.0.0 — 2016-01-18

## README

floweroflife.js
===========

> This script generates a set of points ( circle centers ) which form the mystical [flower of life](https://en.wikipedia.org/wiki/Overlapping_circles_grid#Modern_usage) pattern.

### Install:

```
npm/bower install floweroflife
```

### Usage: 
```javascript
var flower = require("floweroflife");
var radius = 40;
var layers = 4;
// Generate 4 layers, starting from x0,y0
var f = flower(0,0 , radius, layers);

f.layers(); // Returns 2d array of layered points
f.points(); // Returns array of all flower points ( layers flattened )
            // Each point is: Object { x: 0, y: 0 }

```

--------------------------

Here is a jsfiddle [demo](https://jsfiddle.net/7knn3x2d/3/) that uses [snap.svg](http://snapsvg.io/) to draw the pattern. Use any drawing library of your choice and create your flower.

---
_Source: https://npm.io/package/floweroflife · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
