Socket
Book a DemoInstallSign in
Socket

genart

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

genart

Generative art with canvas.

0.1.0
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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.

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 for more details.

More docs coming soon.

Examples

The extensions can be seen in this example:

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.

License

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

Keywords

art

FAQs

Package last updated on 18 Jun 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.