Skip to content
This repository has been archived by the owner on Aug 10, 2020. It is now read-only.

Latest commit

 

History

History
62 lines (56 loc) · 947 Bytes

interaction.md

File metadata and controls

62 lines (56 loc) · 947 Bytes

Interaction

Device

Buttons

Querying Buttons

Lighting

Set the color of a button or multiple buttons.

// Using color names
button.light("red");

Standard RGB

// Set the button to this decimal color
button.light(8);

Full RGB

// Object of numbers
button.light({
	"red": 10,
	"green": 20,
	"blue": 30
});
// Object of numbers, abbreviated
button.light({
	"r": 10,
	"g": 20,
	"b": 30
});
// Array of numbers
button.light([10, 20, 30]);

Bi-color

// Array of numbers
button.light([3, 0]);

Darking

button.dark();