From 9c7a8e83a78d591d735ba344b8754ad60720d6a2 Mon Sep 17 00:00:00 2001 From: DarthAffe Date: Sun, 8 Jan 2017 15:35:30 +0100 Subject: [PATCH] Updated Perform basic lighting (markdown) --- Perform-basic-lighting.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Perform-basic-lighting.md b/Perform-basic-lighting.md index 5614da9..cd335ad 100644 --- a/Perform-basic-lighting.md +++ b/Perform-basic-lighting.md @@ -32,4 +32,10 @@ CueSDK.UpdateFrequency = 1f/60f; ``` > Be aware of the performance impact of high update-rates! -> Since the update rate is limited by CUE and the hardware, you'll most likely not see any improvements by using more then 40 updates per second. \ No newline at end of file +> Since the update rate is limited by CUE and the hardware, you'll most likely not see any improvements by using more then 40 updates per second. + +### CorsairColor +Inside of CUE.NET colors are represented as a own class called [CorsairColor](https://github.com/DarthAffe/CUE.NET/blob/master/Devices/Generic/CorsairColor.cs). +This allows colors to be reference and processed in an advanced way. To keep things simple when working with CUE.NET any _CorsairColor_ is implicit convertible to and from System.Drawing.Color. +> CorsairColors are unlike System.Draw.Colors reference-types. Keep that in mind when modifying a color that might be used multiple times! +You can copy any color by simply creating a new one and pass the old as a parameter to the constructor. \ No newline at end of file