rc

razer-chroma

🔥 Control your Razer Keyboard, right from Node

Showing:

Popularity

Downloads/wk

4

GitHub Stars

86

Maintenance

Last Commit

4yrs ago

Contributors

2

Package

Dependencies

1

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Chroma for Node

This is a native C++ Wrapper for the Chroma SDK, currently only supporting Keyboard. It's a modernized fork of Chrode, extending it with a metric ton of features, making it more flexible, and all around ensuring that it's ready for production.

Usage

For more details, check out the samples in ./samples! All parameters are also documented inline in JSDOC/ESDOC.

npm install razer-chroma
const chroma = require('razer-chroma')

if (chroma.initialize()) {

  const thisColor = { red: 255, green: 0, blue: 20 }
  const thatColor = { red: 255, green: 0, blue: 20 }

  const {Keyboard} = chroma

  // Go ahead, go add some effects!
  Keyboard.setBreathing(thisColor, thatColor)
  Keyboard.setBreathingRandom()
  Keyboard.setReactive(thisColor)
  Keyboard.setSpectrumCycling()
  Keyboard.setStarlight(thisColor, thatColor)
  Keyboard.setWave('leftToRight')
  Keyboard.setStatic(thisColor)

  // Later
  chroma.terminate()
}

License

MIT, please see LICENSE.md for details.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100