Skip to content

Instantly share code, notes, and snippets.

@brandonscott
Created June 22, 2016 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandonscott/3fac38e5332ef6084424e75f982d5b6d to your computer and use it in GitHub Desktop.
Save brandonscott/3fac38e5332ef6084424e75f982d5b6d to your computer and use it in GitHub Desktop.
// Create a custom for the Keyboard
var keyboardGrid = KeyboardCustom.Create();
// Set the whole Grid to Green
keyboardGrid.Set(ColoreColor.Green);
// Set the A Key to Red
keyboardGrid[Key.A] = ColoreColor.Red;
// Set the Key in the second row and the fifth column to Red
keyboardGrid[1,4] = ColoreColor.Red;
// Apply the grid to the Keyboard
Chroma.Instance.Keyboard.SetCustom(keyboardGrid);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment