Busylight SDK – Showing Custom Colours
In my previous post on the new Busylight SDK, I said that I didn’t think it was possible to display any colours other than Red, Green, Blue & Yellow. In fact, I said:
In the future, it would be cool to be able to specify custom colour combinations, maybe using RGB values, to allow for a range of different colours.
Well, the guys at Plenom got back to me, and I was wrong. It IS possible to create your own colours: I’d just not noticed it.
You can create a new BusylightColour object and specify the RGB parts as properties. Here’s an example of doing this to create a nice purple colour:
using Plenom.Components.Busylight.Sdk; | |
using System.Threading; | |
namespace ThoughtStuff.BusylightSDK | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
//Instantiate BusyLightController for either Lync or UC: | |
var controller = new BusylightLyncController(); | |
// var controller = new BusylightUcController(); | |
controller.Light(new BusylightColor() { RedRgbValue = 40, GreenRgbValue = 0, BlueRgbValue = 40 }); | |
} | |
} | |
} |
If this short post makes no sense to you at all, I suggest reading the original post on the Busylight SDK, which I’ve updated with this new information.