@mathieucaroff/colorstrip
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

colorstrip

Web display of crossing, moving bands of color

Usage

npm install --save @mathieucaroff/colorstrip

OR

yarn add @mathieucaroff/colorstrip

then:

let canvas = document.querySelector("canvas")

let strip = createColorStrip(canvas, {
    diversityRatio: 0.25,
    radiusFactor: 1,
    secondaryRadiusFactor: 1,
    speedFactor: 1,
    paletteSeed: Math.floor(Math.random() * 2 ** 32),
    stripCircleSeed: Math.floor(Math.random() * 2 ** 32),
    stripCount: 10,
    theme: "pastelle",
})

// strip.draw(0)
strip.play()

Developement

Setup

yarn install

Running it in development mode

yarn dev

Build

yarn build

Readme

Keywords

none

Package Sidebar

Install

npm i @mathieucaroff/colorstrip

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

36.2 kB

Total Files

6

Last publish

Collaborators

  • mathieucaroff