chroma-sdk - Colore 6.0.0-unstable0190
A C#/.NET library for interacting with Razer's Chroma SDK.
PM> Install-Package Colore -Version 6.0.0-unstable0190 -Source https://www.myget.org/F/chroma-sdk/api/v3/index.json
> nuget.exe install Colore -Version 6.0.0-unstable0190 -Source https://www.myget.org/F/chroma-sdk/api/v3/index.json
> dotnet add package Colore --version 6.0.0-unstable0190 --source https://www.myget.org/F/chroma-sdk/api/v3/index.json
source https://www.myget.org/F/chroma-sdk/api/v3/index.json
nuget Colore ~> 6.0.0-unstable0190
Copy to clipboard
> choco install Colore --version 6.0.0-unstable0190 --source https://www.myget.org/F/chroma-sdk/api/v2
Import-Module PowerShellGet
Register-PSRepository -Name "chroma-sdk" -SourceLocation "https://www.myget.org/F/chroma-sdk/api/v2"
Install-Module -Name "Colore" -RequiredVersion "6.0.0-unstable0190" -Repository "chroma-sdk" -AllowPreRelease
Copy to clipboard
Browse the sources in this package using Visual Studio or WinDbg by configuring the following legacy symbol server URL: https://www.myget.org/F/chroma-sdk/symbols/
A powerful and elegant C# library for Razer Chroma's SDK.
GitHub | AppVeyor | Travis | |
---|---|---|---|
master |
|||
develop |
master |
|||
---|---|---|---|
develop |
Getting started
If you are a new developer and are looking for a helpful guide on how to get started, head on over to the documentation which describes getting Colore installed and running some example code.
Contributing
For discussing, you can discuss right here in the repo or join the Razer Community Discord server using the badges above. If you want to join the Slack chat, contact Adam Hellberg (sharparam@sharparam.com).
Contributors are very welcome! If you have code fixes, please submit a pull request here on GitHub.
If you want to join the development team, please contact Sharparam on GitHub.
All authors and contributors are listed in the AUTHORS
file.
Feel free to add yourself to this file under a relevant section in your pull request.
Please read the CONTRIBUTING.md
file before making a pull request.
Code of Conduct
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
License
Copyright © 2015-2021 by Adam Hellberg and Brandon Scott.
This project is licensed under the MIT license, please see the file LICENSE
for more information.
Razer is a trademark and/or a registered trademark of Razer USA Ltd. All other trademarks are property of their respective owners.
Installing
Using Colore in your project is simple, all you have to do is install it with NuGet!
Install-Package Colore
Or using the .NET CLI tools:
dotnet add package Colore
You can also search for it in Visual Studio by right clicking your project and choosing "Manage NuGet Packages..." and install it the GUI way.
Pre-releases
New release candidate versions will be uploaded to NuGet and marked as pre-releases there (vX.Y.Z-rcDDDD).
You can also find pre-release versions for Colore and any additional extensions in the GitHub package registry. The GitHub package registry will be the place where you'll always find the most bleeding edge packages.
Extensions
The WPF and WinForms extension packages for Colore are not yet available for the new Colore version, but will be on NuGet soon™, so stay tuned!
Using
Obtain a reference to an IChroma
instance by calling Colore.ColoreProvider.CreateNative()
.
This instance initializes the Chroma SDK so it is important you save this reference for the lifetime of your application! If you need to dispose of it and obtain a new one later, be sure to call the uninitialize method first!
Colore supports binding to both the native Chroma SDK and the REST API.
To use the REST API, create an IChroma
instance by calling Colore.ColoreProvider.CreateRestAsync(AppInfo)
.
The REST API requires information about your application, so you'll have to pass an instance of AppInfo
to CreateRestAsync
containing details about your application or game.
For a more in-depth guide on how to get started, check out our wiki.
For more information on the native and REST SDKs that Colore uses, check out Razer's official page for the Chroma SDK and their page about SDK tools.
Dependencies
Colore depends on the Razer Chroma SDK (RzChromaSDK64.dll
or RzChromaSDK.dll
).
The Razer Chroma SDK is provided by Razer and installed together with the Synapse application. More information can be read on their website.
Other dependencies are installed via NuGet and listed in each project file.
Building
Colore supports building for multiple target frameworks.
At the moment, these are .NET Standard 1.3 and .NET Framework 4.5.1.
When building the project, DLLs for both frameworks will be generated in the output folders, under the folder names netstandard1.3
and net451
.
Use the ones fitting for your application.
The below examples compiles Colore in Release mode.
.\build.ps1 -Configuration Release
You can also use the "CI" build target to generate the same artifacts made available for each release of Colore.
.\build.ps1 -Configuration Release -Target CI
You will find the resulting artifact files under the artifacts
folder in the root of the repository.
Note that the above commands are executed with PowerShell. If you are building on a Linux system or macOS,
use the build.sh
script in place of build.ps1
(you may have to make it executable first with chmod +x build.sh
).
Native Documentation
As Colore is built upon the native Chroma SDK for C++, it can be worth taking a look at their documentation.
REST Documentation
Colore's REST mode is built on Razer's official REST API, which has its own documentation.
Razer Chroma Workshop
Many of the games and apps featured on the Razer Chroma Workshop have used the Colore library.
The official Razer Chroma Workshop is your one-stop-shop to get the most out of your Chroma devices. Whether it's smart lighting based on in-game events, standalone apps or stunning profiles created by fans around the world, the Chroma Workshop is where you can explore, download and even share your own creations.
Games using Colore
The following games (powered by Unity) are using Colore:
Projects using Colore
Aurora - Unified lighting effects across multiple brands and various games. (GitHub)
There may be others we are unaware of, so please let us know if there are any others.
-
.NETFramework 4.5.1
- JetBrains.Annotations (>= 11.1.0)
- Microsoft.Net.Http (>= 2.2.29)
- Newtonsoft.Json (>= 10.0.3)
- System.Runtime.InteropServices.RuntimeInformation (>= 4.3.0)
- System.ValueTuple (>= 4.4.0)
-
.NETStandard 1.3
- JetBrains.Annotations (>= 11.1.0)
- Microsoft.Win32.Registry (>= 4.4.0)
- NETStandard.Library (>= 1.6.1)
- Newtonsoft.Json (>= 10.0.3)
- System.Reflection (>= 4.3.0)
- System.Reflection.Extensions (>= 4.3.0)
- System.Reflection.TypeExtensions (>= 4.4.0)
- System.Runtime.InteropServices.RuntimeInformation (>= 4.3.0)
- System.ValueTuple (>= 4.4.0)
- .NETFramework 4.5.1: 4.5.1.0
- .NETStandard 1.3: 1.3.0.0
Assembly | Assembly hash | Match |
---|---|---|
/lib/netstandard1.3/colore.dll | 25f0d8334f7241c18377fce72922972a1 | |
/lib/net451/colore.dll | bce8417837364a5b833927c4246d682e1 |
OwnersAdam Hellberg |
AuthorsSharparam |
Project URLhttps://github.com/CoraleStudios/Colore |
LicenseMIT |
Tagsrazer chroma corale led light peripheral gaming |
Info268 total downloads |
7 downloads for version 6.0.0-unstable0190 |
Download (203.38 KB) |
Download legacy symbols (621.76 KB) |
Found on the current feed only |
Package history
Version | Size | Last updated | Downloads | Mirrored? | |||
---|---|---|---|---|---|---|---|
6.1.0-unstable0505 | 427.85 KB | Sun, 24 Feb 2019 17:56:34 GMT | 30 | ||||
6.1.0-alpha0493 | 427.34 KB | Wed, 02 Jan 2019 03:30:26 GMT | 20 | ||||
6.1.0-alpha0491 | 427.34 KB | Wed, 02 Jan 2019 03:05:16 GMT | 6 | ||||
6.1.0-alpha0490 | 427.34 KB | Wed, 02 Jan 2019 02:45:57 GMT | 7 | ||||
6.0.0-unstable0240 | 426.3 KB | Tue, 26 Jun 2018 18:26:00 GMT | 38 | ||||
6.0.0-unstable0231 | 426.31 KB | Sun, 17 Jun 2018 07:46:03 GMT | 7 | ||||
6.0.0-unstable0225 | 426.31 KB | Sat, 16 Jun 2018 19:16:24 GMT | 9 | ||||
6.0.0-unstable0223 | 207.01 KB | Sat, 16 Jun 2018 18:40:16 GMT | 8 | ||||
6.0.0-unstable0222 | 206.95 KB | Wed, 23 May 2018 20:35:06 GMT | 11 | ||||
6.0.0-unstable0221 | 206.94 KB | Tue, 08 May 2018 21:47:38 GMT | 8 | ||||
6.0.0-unstable0220 | 206.94 KB | Tue, 08 May 2018 21:37:33 GMT | 6 | ||||
6.0.0-unstable0219 | 206.95 KB | Tue, 08 May 2018 20:52:12 GMT | 6 | ||||
6.0.0-unstable0218 | 206.94 KB | Tue, 08 May 2018 20:28:34 GMT | 6 | ||||
6.0.0-unstable0216 | 206.94 KB | Tue, 08 May 2018 20:08:25 GMT | 8 | ||||
6.0.0-unstable0215 | 206.94 KB | Tue, 08 May 2018 17:00:17 GMT | 6 | ||||
6.0.0-unstable0214 | 206.94 KB | Mon, 07 May 2018 22:05:19 GMT | 6 | ||||
6.0.0-unstable0212 | 206.94 KB | Mon, 07 May 2018 21:59:43 GMT | 8 | ||||
6.0.0-unstable0203 | 206.61 KB | Mon, 07 May 2018 00:40:16 GMT | 6 | ||||
6.0.0-unstable0199 | 205.75 KB | Sat, 05 May 2018 20:37:57 GMT | 5 | ||||
6.0.0-unstable0197 | 205.75 KB | Sat, 05 May 2018 20:33:39 GMT | 7 | ||||
6.0.0-unstable0196 | 205.75 KB | Sat, 05 May 2018 20:25:39 GMT | 7 | ||||
6.0.0-unstable0195 | 205.75 KB | Wed, 02 May 2018 23:31:47 GMT | 5 | ||||
6.0.0-unstable0193 | 205.4 KB | Wed, 02 May 2018 23:09:51 GMT | 5 | ||||
6.0.0-unstable0190 | 203.38 KB | Wed, 02 May 2018 22:24:47 GMT | 7 | ||||
6.0.0-unstable0189 | 201.94 KB | Wed, 02 May 2018 20:31:01 GMT | 8 | ||||
6.0.0-rc0005 | 429.14 KB | Wed, 13 Mar 2019 20:39:50 GMT | 7 | ||||
6.0.0-rc0004 | 427.81 KB | Sun, 24 Feb 2019 17:41:00 GMT | 6 | ||||
6.0.0-rc0003 | 427.31 KB | Mon, 28 Jan 2019 23:50:35 GMT | 8 | ||||
6.0.0-rc0002 | 427.31 KB | Mon, 28 Jan 2019 23:31:10 GMT | 7 |