effectserver-client
Client for instanssi/effectserver
Last updated 7 years ago by bebraw .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install effectserver-client 
SYNC missed versions from official npm registry.

build status

effectserver-client

Node.js client for instanssi/effectserver. It comes with a couple of sample effects and a demo.

Animation Specification

The system is based on lists. Each list represents a frame. Next frame is shown after given interval (no better control at the moment). Every effect just generates a list compatible with the format. Consider the example below:

[
    [{ // first frame
        id: 10,
        rgb: [0, 0, 255]
    },
    {
        id: 13,
        rgb: [0, 0, 255]
    }],
    [{ // second frame
        id: 10,
        rgb: [255, 0, 0]
    },
    {
        id: 13,
        rgb: [255, 0, 0]
    }]
]

id refers to the light. rgb is just an array of three values [0, 255] each representing a color channel.

License

effectserver-client is available under MIT. See LICENSE for more details.

Current Tags

  • 0.1.1                                ...           latest (7 years ago)

1 Versions

  • 0.1.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (5)
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2017 © taobao.org |