# genart

> Generative art with canvas.

Latest version **0.1.0** (published 2012-06-18) · 0 weekly downloads

## Install

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

Provides the command `genart`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2012-06-18 |
| First published | 2012-06-18 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.6 |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Chris Jaure |
| Maintainers | chrisjaure |
| Keywords | art, generative |

## Links

- npm: https://www.npmjs.com/package/genart
- Repository: https://github.com/chrisjaure/genart
- Issues: https://github.com/chrisjaure/genart/issues
- npm.io page: https://npm.io/package/genart

## Dependencies (4)

- [paper](https://npm.io/package/paper.md) git://github.com/chrisjaure/paper.js.git
- [canvas](https://npm.io/package/canvas.md) >= 0.12
- [optimist](https://npm.io/package/optimist.md) >= 0.3.4
- [underscore](https://npm.io/package/underscore.md) >= 1.3.3

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2012-06-18

## README

# genart

Generative art for the rest of us. This is an attempt to create a nice api for creating generative art. Built on top of a modified [Paper.js](https://github.com/paperjs/paper.js).

## Getting Started
Install the module with: `npm install genart`

Generate some art!

```
genart -i ../examples/circle.js -o ~/genart.png
```

## Documentation
Since genart is simply extending paper.js, take a look at the [paper.js docs](http://paperjs.org/reference/) for more details.

_More docs coming soon._

## Examples
The extensions can be seen in this example:
```javascript
var circle = new canvas.Path.Circle([0, 0], 50)
	.set({
		fillColor: 'red',
		strokeColor: 'green',
		strokeWidth: 2,
		opacity: 0.2,
		blendMode: 'overlay'
	})
	.nthChild('15n', function() {
		this.fillColor = 'yellow';
	})
	.nthChild('6n', function() {
		this.scale(0.5);
	})
	.tile();
```

## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [grunt](https://github.com/cowboy/grunt).

## License
Copyright (c) 2012 Chris Jaure  
Licensed under the MIT license.

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