Skip to content
🔥 Control your Razer Keyboard, right from Node
C++ Python JavaScript Objective-C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
samples
sdk
.gitignore
.npmignore
Chroma.cc
LICENSE.md
NodeKeyboard.cc
NodeKeyboard.h
Readme.md
SDK.cc
SDK.h
binding.gyp
boot.js
index.js
package.json

Readme.md

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.

You can’t perform that action at this time.