1.0.0 • Published 7 years ago

bahaghari v1.0.0

Weekly downloads
110
License
MIT
Repository
-
Last release
7 years ago

Bahaghari

Functional javascript API wrapper for Razer Chroma REST api.

Work in progress

Usage

import * as B from 'bahaghari';

const app = {
    title: 'App Title',
    description: 'App Desc',
    author: {
        name: 'Cyrus',
        contact: `my.email@email.com`
    },
    device_supported: ['keyboard', 'mousepad', ...]
}

const chromaIntance = B.createChroma(app);

// apply effects
await B.setWaveAnimation({
    device: `keyboard`,
    cycles: 5,
    colors: ['#fff', `red`, ...]
}, chromaInstance);

// cleanup / close
await B.stop(chromaInstance);

Functions

Work in progress

  • createBGRColor :: hex_string || {r: num, b: num, g: num} -> bgr: num
  • createChroma :: app -> Promise
  • setEffect :: OPTS {device, method, body} , chroma -> Promise<>
  • deleteEffect
  • stop
  • setCustomEffect
  • setBreathingAnimation
  • setWaveAnimation
  • setOffEffect
  • setStaticEffect
1.0.0

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.1-alpha.1

7 years ago