0.3.3 • Published 3 years ago

urpflanze v0.3.3

Weekly downloads
67
License
GPL-3.0-or-later
Repository
github
Last release
3 years ago

A library for developers who want to approach to creative coding, for artists who want to approach to programming or for anyone else who wants to play with math.

Full docs and Examples

Installation

The most immediate way to include Urpflanze in your project is to use an online hosted version.

CDN

Full version

<script src="https://cdn.jsdelivr.net/npm/urpflanze"></script>

Customizable version

<script src="https://cdn.jsdelivr.net/npm/urpflanze[@version]/build/urpflanze[-light][.min].js"></script>

NPM

To install it just run the command:

npm i --save urpflanze

At the end you can include Urpflanze in your code

import * as Urpflanze from 'urpflanze'

const scene = new Urpflanze.Scene()

// or

import { Scene } from 'urpflanze'

const scene = new Scene()

use urpflanze/dist/index-light for light version

Example

Hello Rect!

const scene = new Urpflanze.Scene()

const rect = new Urpflanze.Rect({
	repetitions: 8,
	distance: 100,
	sideLength: 20,
})
scene.add(rect) // Add rect to scene

const drawer = new Urpflanze.DrawerCanvas(scene, document.body)
drawer.draw() // Draw scene on canvas

Output

Example output

Full docs and Examples

0.4.0

3 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.0-beta

3 years ago

0.2.4-beta

3 years ago

0.2.3-beta

3 years ago

0.2.0-beta.2

3 years ago

0.2.1-beta

3 years ago

0.2.2-beta

3 years ago

0.2.0-beta.1

3 years ago

0.1.0-alpha.2

3 years ago

0.1.0-alpha.1

3 years ago

0.0.0-alpha.3

3 years ago

0.0.0-alpha.2

3 years ago

0.0.0-alpha.1

3 years ago

0.0.0-beta.1

4 years ago