Table of Contents
- See Also
- Getting Started With Unity SDK
- User Privacy
- Dependencies
- Requirements and Setup
- About
- Chroma Editor Library
- Windows PC
- Windows Cloud
- SDK Integration
- Chroma Design
- Revisions
- Sample Project
- Tools
- Integration
- Testing
- Haptic Design
- Modding
- General
- Chroma Sensa
- Synesthesia
- Namespace
- Initialize SDK
- Is Active
- Is Connected
- Play Chroma Animation
- Set Event Name
- Use Forward Chroma Events
- Microsoft Dynamic Lighting
- API Class
- Full API
- This Chroma SDK plugin requires
Unity 2021.3.15f1
or higher.
Docs:
- Chroma Animation Guide - Visual examples of the Chroma animation API methods
Plugins:
- CChromaEditor - C++ library for playing and editing Chroma animations
Note: The Chroma SDK requires only the minimum amount of information necessary to operate during initialization, including the title of the application or game, description of the application or game, application or game author, and application or game support contact information. This information is displayed in the Chroma app. The Chroma SDK does not monitor or collect any personal data related to users.
To use the Chroma SDK first install the new Razer Synapse and Chroma App.
- If you don't have Chroma hardware, you can see Chroma effects with the Chroma Emulator
To import the Chroma SDK into Unity using the Unity Package Manager, follow these steps:
- Open the Unity Package Manager, then click the
+
button in the toolbar. SelectAdd package from git URL
from the menu.
- In the text box that appears, enter the URL https://github.com/razerofficial/Unity_ChromaSDK.git and click Add.
If the installation is successful, the Razer Chroma SDK
package will appear in the package list with the git
tag.
The package includes samples scenes that download to the Packages\RazerChromaSDK\Tests\Scenes
folder. Unfortunately, opening scenes in this folder causes a readonly error.
The Packages\RazerChromaSDK\Editor\RazerChromaSDKMenu.cs
editor script adds a menuitem to setup the sample scenes and StreamingAssets
sample Chroma animations. The Assets->Razer ChromaSDK - Setup Sample Scenes
menu item will prepare assets automatically. This avoids the issue with packaged scenes showing the readonly package error.
After the menu item prepares assets, scenes will be added to Assets/Scenes
and Chroma animations will be added to Assets/StreamingAssets/Animations
.
Example scenes use TextMesh Pro
so you may need to import TMP Essentials
after opening a sample scene.
For Windows PC
builds the RzChromatic.dll
and RzChromaStreamPlugin.dll
are not packaged with the build. These libraries are automatically updated and managed by Synapse and the Chroma Connect module. Avoid including these files in your build folder for Windows PC
builds.
32-bit libraries
(Unity Editor 4.X or better)
Packages\RazerChromaSDK\Runtime\Plugins\x86\CChromaEditorLibrary.dll
(Standalone 32-bit builds)
Win32BuildFolder\Project_Data_Folder\Plugins\x86\CChromaEditorLibrary.dll
64-bit libraries
(Unity Editor 4.X or better)
Packages\RazerChromaSDK\Runtime\Plugins\x64\CChromaEditorLibrary64.dll
(Standalone 64-bit builds)
Win64BuildFolder\Project_Data_Folder\Plugins\x64\CChromaEditorLibrary64.dll
Windows Cloud
builds run on cloud platforms using Windows
such as Amazon Luna
, Microsoft Game Pass
, and NVidia GeForce Now
. Game instances run in the cloud without direct access to Chroma hardware. Chroma effects stream across the Internet to reach your local machine and connected hardware. No extra code is required to add Cloud support. In the case with NVidia GeForce Now
, the cloud runs the same Epic Games and Steam builds as the desktop version and support Chroma streaming. Viewers can watch the cloud stream via the Razer Stream Portal.
The SDK integration process involves the following:
The Chroma Design is the starting point. The team provides 15 sample effects that play on an animated web page. The sample effects correspond to short gameplay video clips and give an idea to the type of animation that could play for a set of game events. The samples are available to use for the specified effect or can be used for any other effect which is completely up to the developer. The developer may ask for effect revisions or additional sample effects. If gameplay video is not available, the developer can provide a description or reference art to conceptualize the desired effect.
Some Chroma Designs require revisions to add more requested effects or to make changes through the feedback of reviewing the Chroma Design. Revisions can be requested which result in a subset of alterations from the previous design or add completely new game events. Fill out the Chroma_Sensa_Template_Developers.xlsx Template which provides all the necessary fields for making design requests and revisions.
The developer specifies which game engine is used by the game so that a sample project can be shared with sample code for the specified engine. The sample project will have the same effects that were defined in the Chroma Design and ported to the target language/game engine. The sample project will include a plugin to add the Chroma SDK to the specified game engine, and the ported sample code and sample animations from the Chroma Design
.
- The Web Chroma Editor creates Chroma animations and code snippets from several input sources. Designers can create Chroma animations without writing any code. The toolset can use input sources as video, text, camera, web cam, desktop capture, gradients, patterns, images, and blended animations.
-
The Chroma Design Converter can automatically port a web based Chroma Design to several languages and game engines.
-
The Synesthesia Console can generate haptic configurations automatically for your Chroma integration.
The integration process can be as easy as copy and paste from the sample project into the game code. Most likely, it's a matter of finding game triggers in the game code to find the optimal place to add a call to PlayAnimation()
. The typical Chroma integration process lasts 3 - 5 days for a single developer. Haptics integration can take 0 days by using automatic mode. Manually adding haptics can take about the same amount of work as Chroma to add the calls to SetEventName()
in the right places. Chroma and haptics are independent meaning sometimes they play together and sometimes they play separately, which is completely up to the designer. In most cases for game engines after the game build completes, the Chroma animations need to be copied to the animation folder within the game's content folder.
The team can provide QA on the game build when integration has completed. Steam beta keys and Epic Store beta keys make testing possible before a game launches. This can be a good way to provide design revisions by testing and giving feedback on the build. To support the QA process, it will be important to include a level selector and potentially console commands that make it easy to navigate the build to test the game triggers at the right moments to validate the visuals work as expected. Beta key access is limited to the engineering and QA review team.
Just like Chroma Designs, the Haptic Design can be provided by the team. Adding haptic support does not require adding assets to the game. Haptics can be added to a game without code changes and after the game has released. Haptics can be added through creation of a haptic configuration file. Developers can use the Synesthesia Console which automates creation of the haptic configuration file within HapticFolders
and will add some mockup haptic files (simple haptic effect which can be edited with Haptic Composer) when event names follow a naming convention. Haptic configuration files are automatically distributed by the team through Chroma App
updates.
The decision to add Chroma mod support for a title is completely up to the developer. If the developer decides to block modding, Chroma animations can be loaded from a byte array which sandboxes and protects against any modifications to the Chroma animation assets. If the developer wants to use modding, Chroma animation assets are placed within the installation directory. Modders can modify the Chroma animations assets that are loaded by the title. The API provides CloseAnimation
which reloads the Chroma animation from disk. This allows Chroma animations to be modified externally without needing to relaunch the title. Chroma animation playback also supports relative paths from the content folder. Relative paths can be used to organize several mods within the content folder. The title can have a configuration menu that switches between mod subfolder names which changes the relative path for loading the Chroma animations. The C++ Chroma Mod Sample shows how relative paths can be used to detect and use mods, which is applicable for any game or custom engine.
- The Chroma SDK allows an application or game to set the details in the Chroma Apps list within the
Chroma App
.
This document provides a guide to integrating Chroma RGB using the Chroma Unity SDK. Chroma can be included through premade Chroma animations or APIs. Here is the list of available methods:
-
Initialize SDK: Initialize the Chroma SDK to use the library.
-
Is Active: Check if the app/game has Chroma focus.
-
Is Connected: Check if Chroma hardware is connected.
-
Play Chroma Animation: Playback a Chroma animation asset.
-
Set Event Name: Name a game event or game trigger in order to also add Haptics to the Chroma event.
-
Use Forward Chroma Events: Enable or disable automatic invocation of
SetEventName()
when invokingPlayAnimation()
using the animation name.
Chroma Sensa is the combination of Chroma and Razer Sensa HD Haptics in a single SDK. By integrating RGB lighting and haptics into game environments and events, players can enjoy a truly immersive gaming experience. The Chroma SDK
is capable of playing Chroma animations and haptics on the Razer Sensa HD Haptics devices. The default mode allows automatic triggering of haptics effects when Chroma animations are played with PlayAnimation()
. Manual mode is set by UseForwardChromaEvents(false)
and haptics can be triggered independently of Chroma animations with SetEventName().
Event names can follow a naming convention which assists with the generation of the haptics configuration for your title. Event names are specified with the SetEventName()
method. The event name suffix can be left off or used to prepopulate common settings for _ON
, _OFF
, and _MERGE
.
-
"Jump" - (without a suffix) Existing haptics stop, the named haptic plays to completion and then ends
-
"Attack_ON" - Existing haptics continue to play, the named haptic plays as a continuous looping haptic
-
"Attack_OFF" - Existing haptics continue to play, the named looping haptic stops
-
"Punch_MERGE" - Existing haptics continue to play, the named haptic plays to completion and ends
-
"Block_MERGE" - Existing haptics continue to play, the named haptic plays to completion and ends
Upon completion of Chroma and haptic implementation, the list of Chroma events and game triggers should be shared with the team to be add to the game's Chroma Workshop entry.
Targeting features can be optionally described for each haptics effect.
-
"Target" defaults to
"All"
. GroupID options can be found at https://www.interhaptics.com/doc/interhaptics-engine/#groupid -
"Spatialization" defaults to
"Global"
. Other LateralFlag options can be found at https://www.interhaptics.com/doc/interhaptics-engine/#lateralflag -
"Gain" defaults to 1.0.
- The following APIs are demonstrated in the
Assets\Scenes\Scene_Chromatic.unity
sample scene.
The Synesthesia Console makes creating the haptics configuration for game integration super easy. Download and run the installer to get started creating a haptics config.
- Run
SynesthesiaStop.exe
to stop any existing background or haptic consoles
- Run the
Synesthesia Console
for the interactive prompt
- Enter option
1
and pressEnter
to listen for incoming commands
- Launch your game that uses
PlayAnimation
orSetEvent
directly to trigger haptic commands.
When the application launches and initializes Chroma, the command to load
the haptic configuration file is sent. When the application receives Chroma focus, the active
command is sent. When PlayAnimation
or SetEvent
is called, the play
command is sent.
Command Received : "load;C++ Game Sample Application"
Command Received : "active;C++ Game Sample Application"
Command Received : "play;Effect1"
- Play through all the game triggers to send any possible commands the game might use. This will be useful for generating the haptic configuration next.
- Enter option
2
and pressEnter
to generate the haptics configuration
- Enter option
0
and pressEnter
to use the detected application name used by the Chroma initialization
- Enter option
0
and pressEnter
to use activate the new haptic configuration file. Now when the game triggers haptic events, the configured haptic events will play.
The haptic.config
and haps
default haptics effects were generated in the HapticFolders
by the console.
The haptic.config
contains default targeting for the generated entries for each detected command.
{
"ExternalCommands": [
{
"External_Command_ID": "Effect1",
"Haptic_Events": [
{
"Haptic_Effect": "Effect1",
"Loop": 1,
"Mixing": "Override",
"Targeting": [
{
"Gain": 1.0,
"Spatialization": "Global",
"Target": "All"
}
]
}
]
},
...
]
}
Add the Chroma SDK namespace to use the API.
using ChromaSDK;
Initialize the Chroma SDK in order to utilize the API. The InitSDK
method takes an AppInfo
parameter which defines the application or game details that will appear in the Chroma App
within the Chroma Apps
tab. The expected return result should be RazerErrors.RZRESULT_SUCCESS
which indicates the API is ready for use. If a non-success result is returned, the Chroma implementation should be disabled until the next time the application or game is launched. Reasons for failure are likely to be the user does not have the Synapse
or the Chroma App
installed. After successfully initializing the Chroma SDK, wait approximately 100 ms before playing Chroma animations.
APPINFOTYPE appInfo = new APPINFOTYPE();
appInfo.Title = "Unity Sample Scene - Chromatic";
appInfo.Description = "A sample application using Razer Chroma SDK";
appInfo.Author_Name = "Razer";
appInfo.Author_Contact = "https://developer.razer.com/chroma";
//appInfo.SupportedDevice =
// 0x01 | // Keyboards
// 0x02 | // Mice
// 0x04 | // Headset
// 0x08 | // Mousepads
// 0x10 | // Keypads
// 0x20 // ChromaLink devices
appInfo.SupportedDevice = (0x01 | 0x02 | 0x04 | 0x08 | 0x10 | 0x20);
// 0x01 | // Utility. (To specifiy this is an utility application)
// 0x02 // Game. (To specifiy this is a game);
appInfo.Category = 1;
int result = ChromaAnimationAPI.InitSDK(ref appInfo);
if (result == RazerErrors.RZRESULT_SUCCESS)
{
// Init Success! Ready to use the Chroma SDK!
}
else
{
// Init Failed! Stop using the Chroma SDK until the next game launch!";
}
Applications should uninitialize the Chroma SDK with Uninit() for a clean exit. Uninitialization is only needed if the Chroma SDK was successfully initialized.
int result = ChromaAnimationAPI::Uninit();
if (result == RazerErrors.RZRESULT_SUCCESS)
{
// Chroma has been uninitialized!
}
else
{
// Uninitialization was unsuccessful!
}
Many applications and games can use the Chroma SDK at the same time, yet only one can have the Chroma focus. The APP PRIORITY LIST
defines the priority order and the highest on the list receives the Chroma focus when more than one are actively using the Chroma SDK. Users can adjust the priority order by dragging and dropping or toggling the app completely off. The IsActive() method allows an application or game to check if it has Chroma focus. This allows the title to free up overhead when Chroma is not in use. If a title uses this to check for focus, the state should be periodically checked to turn Chroma back on when focus is returned. When active returns false, the title can stop playing Chroma animations, disable idle animations, and inactivate dynamic Chroma to free up some overhead. Keep in mind that some apps use Chroma notifications so they will only briefly take Chroma focus and then return it typically over a 5 second period.
bool isActive;
int result = ChromaAnimationAPI.CoreIsActive(out isActive);
if (result == RazerErrors.RZRESULT_SUCCESS)
{
if (isActive)
{
// The game currently has the Chroma focus!
}
else
{
// The game does not currently have the Chroma focus!"
}
}
else
{
// Unable to check for Chroma focus. Unexpected result!
}
To further reduce overhead, a title can check if supported devices are connected before showing Chroma effects. The IsConnected() method can indicate if supported devices are in use to help determine if Chroma should be active. Games often will include a menu settings option to toggle Chroma RGB support, with being on by default as an additional way that users can minimize overhead.
DEVICE_INFO_TYPE deviceInfo = new DEVICE_INFO_TYPE();
deviceInfo.DeviceType = 255; // all devices
int result = ChromaAnimationAPI.CoreIsConnected(ref deviceInfo);
if (result == RazerErrors.RZRESULT_SUCCESS)
{
if (deviceInfo.Connected > 0)
{
// Chroma devices are connected!
}
else
{
// "No Chroma devices are connected!";
}
}
else
{
// "Unable to check for Chroma devices. Unexpected result!";
}
The Chroma SDK supports playing premade Chroma animations which are placed in the StreamingAssets
folder or subfolders within. Chroma animations can be created in the web authoring tools, or dynamically created and modified using the API. Call PlayAnimation() to play Chroma animations with or without looping. Animations have a device category, and playing an animation will stop an existing animation from playing before playing the new animation for the given device category. The animation name is file path of the Chroma animation relative to the StreamingAssets
folder.
bool loop = false;
string[] devices =
{
"ChromaLink",
"Headset",
"Keyboard",
"Keypad",
"Mouse",
"Mousepad"
};
foreach (string device in devices)
{
// The Chroma animation files are located in the subfolder at:
// Assets/StreamingAssets/Animations/
string animationName = string.Format("Animations/Spiral_{0}.chroma", device);
ChromaAnimationAPI.PlayAnimationName(animationName, loop);
}
Chroma events can be named to add supplemental technology to your lighting experience. By naming game events and game triggers, the event name can be used as a lookup to play things like haptics effects. Jump_2s
could be used when playing a Chroma animation of a jump effect that lasts for 2 seconds. Using "Jump_2s" a corresponding haptic effect with similar duration can be added with the Chroma effect to enhance emersion for the title. No other APIs are required to add haptics effects other than to invoke SetEventtName(). To stop haptics playback use SetEventName() with an empty string. A Chroma animation does not need to be playing in order to trigger haptics manually with SetEventName().
int result = ChromaAnimationAPI.CoreSetEventName("Jump_2s");
if (result == RazerErrors.RZRESULT_SUCCESS)
{
// Chroma event named successfully!"
}
else
{
// Unable to set event name. Unexpected result!"
}
// Stop haptic playback
result = ChromaAnimationAPI::CoreSetEventName("");
if (result == RazerErrors.RZRESULT_SUCCESS)
{
// Haptics stopped successfully!"
}
else
{
// Unable to stop haptics. Unexpected result!"
}
By default when PlayAnimation is called, the animation name is automatically sent to SetEventName(). In order to disable the default behaviour set the toggle to false. PlayAnimation() as shown above is called for each device category. It will be more efficent to use SetEventName() once for the Chroma animation set. Manual mode gives the title explicit control over when SetEventName() is called.
bool toggle = false; // manual mode
ChromaAnimationAPI.UseForwardChromaEvents(toggle);
if (toggle)
{
// When PlayAnimation is used, the name is sent to SetEventName().
}
else
{
// The PlayAnimation name is not forwarded.
}
Windows 11 launched Microsoft Dynamic Lighting which is built-in to the Windows Settings Personalization on Windows. Microsoft DL became generally available in Windows 11 22H2
. See the list of supported devices.
For HID compatible devices, with Dynamic Lighting
set to ON
and Chroma App
set as the ambient controller, Chroma effects will display on DL compatible hardware. No extra coding is required to add this compatibility. Chroma App
handles Chroma compatibility with DL and it is completely automatic.
The Assets/Scenes/Scene_SampleApp.unity
scene shows the sample animations from the Chroma Animation Guide. The referenced sample script can be found at Packages\RazerChromaSDK\Tests\Scripts\SampleApp.cs
.
Screenshot:
The Assets/Scenes/Scene_SampleGameLoop.unity
scene shows how to dynamically set color effects directly through the API and while also playing several animations at the same time using various blending operations. This sample shows how to do Chroma effects without using premade Chroma animations. Chroma animations can be used as source color information when doing dynamic blending. The referenced sample script can be found at Packages\RazerChromaSDK\Tests\Scripts\SampleGameLoop.cs
.
Screenshot:
The Assets/Scenes/Scene_GameSample.unity
scene is a template intended to work with the automated Chroma Design Converter for quickly porting sample effects from HTML5 to Unity. The referenced sample script can be found at Packages\RazerChromaSDK\Tests\Scripts\GameSample.cs
. Chroma Design samples are commonly created with 15 sample effects which is why the template has that many buttons to play the sample effects from the ported code. The Chroma Design Converter is not limited to just 15 sample effects and can generate more effect code from the input HTML5 script.
Screenshot:
The Chroma Editor Library
is a helper library for Chroma animation playback and realtime manipulation of Chroma animations.
The latest versions of the Chroma Editor Library
can be found in Releases for Windows-PC
and Windows-Cloud
.
With recent Unity versions, be sure to inspect the native plugins and enable Load on startup
. Editor
and Standalone
platforms are supported for 32-bit and 64-bit.
Video: Unity Chroma Animation Sample App - Streaming on Windows PC and Cloud
The ChromaAnimationAPI
class provides a wrapper for the Chroma Editor Library. The wrapper for the API can be found at Packages\RazerChromaSDK\Runtime\ChromaAnimationAPI.cs
.
- AddColor
- AddFrame
- AddNonZeroAllKeys
- AddNonZeroAllKeysAllFrames
- AddNonZeroAllKeysAllFramesName
- AddNonZeroAllKeysAllFramesNameD
- AddNonZeroAllKeysAllFramesOffset
- AddNonZeroAllKeysAllFramesOffsetName
- AddNonZeroAllKeysAllFramesOffsetNameD
- AddNonZeroAllKeysName
- AddNonZeroAllKeysOffset
- AddNonZeroAllKeysOffsetName
- AddNonZeroAllKeysOffsetNameD
- AddNonZeroTargetAllKeysAllFrames
- AddNonZeroTargetAllKeysAllFramesName
- AddNonZeroTargetAllKeysAllFramesNameD
- AddNonZeroTargetAllKeysAllFramesOffset
- AddNonZeroTargetAllKeysAllFramesOffsetName
- AddNonZeroTargetAllKeysAllFramesOffsetNameD
- AddNonZeroTargetAllKeysOffset
- AddNonZeroTargetAllKeysOffsetName
- AddNonZeroTargetAllKeysOffsetNameD
- AppendAllFrames
- AppendAllFramesName
- AppendAllFramesNameD
- ClearAll
- ClearAnimationType
- CloseAll
- CloseAnimation
- CloseAnimationD
- CloseAnimationName
- CloseAnimationNameD
- CloseComposite
- CloseCompositeD
- CopyAllKeys
- CopyAllKeysName
- CopyAnimation
- CopyAnimationName
- CopyAnimationNameD
- CopyBlueChannelAllFrames
- CopyBlueChannelAllFramesName
- CopyBlueChannelAllFramesNameD
- CopyGreenChannelAllFrames
- CopyGreenChannelAllFramesName
- CopyGreenChannelAllFramesNameD
- CopyKeyColor
- CopyKeyColorAllFrames
- CopyKeyColorAllFramesName
- CopyKeyColorAllFramesNameD
- CopyKeyColorAllFramesOffset
- CopyKeyColorAllFramesOffsetName
- CopyKeyColorAllFramesOffsetNameD
- CopyKeyColorName
- CopyKeyColorNameD
- CopyKeysColor
- CopyKeysColorAllFrames
- CopyKeysColorAllFramesName
- CopyKeysColorName
- CopyKeysColorOffset
- CopyKeysColorOffsetName
- CopyNonZeroAllKeys
- CopyNonZeroAllKeysAllFrames
- CopyNonZeroAllKeysAllFramesName
- CopyNonZeroAllKeysAllFramesNameD
- CopyNonZeroAllKeysAllFramesOffset
- CopyNonZeroAllKeysAllFramesOffsetName
- CopyNonZeroAllKeysAllFramesOffsetNameD
- CopyNonZeroAllKeysName
- CopyNonZeroAllKeysNameD
- CopyNonZeroAllKeysOffset
- CopyNonZeroAllKeysOffsetName
- CopyNonZeroAllKeysOffsetNameD
- CopyNonZeroKeyColor
- CopyNonZeroKeyColorName
- CopyNonZeroKeyColorNameD
- CopyNonZeroTargetAllKeys
- CopyNonZeroTargetAllKeysAllFrames
- CopyNonZeroTargetAllKeysAllFramesName
- CopyNonZeroTargetAllKeysAllFramesNameD
- CopyNonZeroTargetAllKeysAllFramesOffset
- CopyNonZeroTargetAllKeysAllFramesOffsetName
- CopyNonZeroTargetAllKeysAllFramesOffsetNameD
- CopyNonZeroTargetAllKeysName
- CopyNonZeroTargetAllKeysNameD
- CopyNonZeroTargetAllKeysOffset
- CopyNonZeroTargetAllKeysOffsetName
- CopyNonZeroTargetAllKeysOffsetNameD
- CopyNonZeroTargetZeroAllKeysAllFrames
- CopyNonZeroTargetZeroAllKeysAllFramesName
- CopyNonZeroTargetZeroAllKeysAllFramesNameD
- CopyRedChannelAllFrames
- CopyRedChannelAllFramesName
- CopyRedChannelAllFramesNameD
- CopyZeroAllKeys
- CopyZeroAllKeysAllFrames
- CopyZeroAllKeysAllFramesName
- CopyZeroAllKeysAllFramesNameD
- CopyZeroAllKeysAllFramesOffset
- CopyZeroAllKeysAllFramesOffsetName
- CopyZeroAllKeysAllFramesOffsetNameD
- CopyZeroAllKeysName
- CopyZeroAllKeysOffset
- CopyZeroAllKeysOffsetName
- CopyZeroKeyColor
- CopyZeroKeyColorName
- CopyZeroKeyColorNameD
- CopyZeroTargetAllKeys
- CopyZeroTargetAllKeysAllFrames
- CopyZeroTargetAllKeysAllFramesName
- CopyZeroTargetAllKeysAllFramesNameD
- CopyZeroTargetAllKeysName
- CoreCreateChromaLinkEffect
- CoreCreateEffect
- CoreCreateHeadsetEffect
- CoreCreateKeyboardEffect
- CoreCreateKeypadEffect
- CoreCreateMouseEffect
- CoreCreateMousepadEffect
- CoreDeleteEffect
- CoreInit
- CoreInitSDK
- CoreIsActive
- CoreIsConnected
- CoreQueryDevice
- CoreSetEffect
- CoreSetEventName
- CoreStreamBroadcast
- CoreStreamBroadcastEnd
- CoreStreamGetAuthShortcode
- CoreStreamGetFocus
- CoreStreamGetId
- CoreStreamGetKey
- CoreStreamGetStatus
- CoreStreamGetStatusString
- CoreStreamReleaseShortcode
- CoreStreamSetFocus
- CoreStreamSupportsStreaming
- CoreStreamWatch
- CoreStreamWatchEnd
- CoreUnInit
- CreateAnimation
- CreateAnimationInMemory
- CreateEffect
- DeleteEffect
- DuplicateFirstFrame
- DuplicateFirstFrameName
- DuplicateFirstFrameNameD
- DuplicateFrames
- DuplicateFramesName
- DuplicateFramesNameD
- DuplicateMirrorFrames
- DuplicateMirrorFramesName
- DuplicateMirrorFramesNameD
- FadeEndFrames
- FadeEndFramesName
- FadeEndFramesNameD
- FadeStartFrames
- FadeStartFramesName
- FadeStartFramesNameD
- FillColor
- FillColorAllFrames
- FillColorAllFramesName
- FillColorAllFramesNameD
- FillColorAllFramesRGB
- FillColorAllFramesRGBName
- FillColorAllFramesRGBNameD
- FillColorName
- FillColorNameD
- FillColorRGB
- FillColorRGBName
- FillColorRGBNameD
- FillNonZeroColor
- FillNonZeroColorAllFrames
- FillNonZeroColorAllFramesName
- FillNonZeroColorAllFramesNameD
- FillNonZeroColorAllFramesRGB
- FillNonZeroColorAllFramesRGBName
- FillNonZeroColorAllFramesRGBNameD
- FillNonZeroColorName
- FillNonZeroColorNameD
- FillNonZeroColorRGB
- FillNonZeroColorRGBName
- FillNonZeroColorRGBNameD
- FillRandomColors
- FillRandomColorsAllFrames
- FillRandomColorsAllFramesName
- FillRandomColorsAllFramesNameD
- FillRandomColorsBlackAndWhite
- FillRandomColorsBlackAndWhiteAllFrames
- FillRandomColorsBlackAndWhiteAllFramesName
- FillRandomColorsBlackAndWhiteAllFramesNameD
- FillRandomColorsBlackAndWhiteName
- FillRandomColorsBlackAndWhiteNameD
- FillRandomColorsName
- FillRandomColorsNameD
- FillThresholdColors
- FillThresholdColorsAllFrames
- FillThresholdColorsAllFramesName
- FillThresholdColorsAllFramesNameD
- FillThresholdColorsAllFramesRGB
- FillThresholdColorsAllFramesRGBName
- FillThresholdColorsAllFramesRGBNameD
- FillThresholdColorsMinMaxAllFramesRGB
- FillThresholdColorsMinMaxAllFramesRGBName
- FillThresholdColorsMinMaxAllFramesRGBNameD
- FillThresholdColorsMinMaxRGB
- FillThresholdColorsMinMaxRGBName
- FillThresholdColorsMinMaxRGBNameD
- FillThresholdColorsName
- FillThresholdColorsNameD
- FillThresholdColorsRGB
- FillThresholdColorsRGBName
- FillThresholdColorsRGBNameD
- FillThresholdRGBColorsAllFramesRGB
- FillThresholdRGBColorsAllFramesRGBName
- FillThresholdRGBColorsAllFramesRGBNameD
- FillThresholdRGBColorsRGB
- FillThresholdRGBColorsRGBName
- FillThresholdRGBColorsRGBNameD
- FillZeroColor
- FillZeroColorAllFrames
- FillZeroColorAllFramesName
- FillZeroColorAllFramesNameD
- FillZeroColorAllFramesRGB
- FillZeroColorAllFramesRGBName
- FillZeroColorAllFramesRGBNameD
- FillZeroColorName
- FillZeroColorNameD
- FillZeroColorRGB
- FillZeroColorRGBName
- FillZeroColorRGBNameD
- Get1DColor
- Get1DColorName
- Get1DColorNameD
- Get2DColor
- Get2DColorName
- Get2DColorNameD
- GetAnimation
- GetAnimationCount
- GetAnimationD
- GetAnimationId
- GetAnimationName
- GetCurrentFrame
- GetCurrentFrameName
- GetCurrentFrameNameD
- GetDevice
- GetDeviceName
- GetDeviceNameD
- GetDeviceType
- GetDeviceTypeName
- GetDeviceTypeNameD
- GetFrame
- GetFrameCount
- GetFrameCountName
- GetFrameCountNameD
- GetFrameDuration
- GetFrameDurationName
- GetFrameName
- GetKeyColor
- GetKeyColorD
- GetKeyColorName
- GetLibraryLoadedState
- GetLibraryLoadedStateD
- GetMaxColumn
- GetMaxColumnD
- GetMaxLeds
- GetMaxLedsD
- GetMaxRow
- GetMaxRowD
- GetPlayingAnimationCount
- GetPlayingAnimationId
- GetRGB
- GetRGBD
- GetTotalDuration
- GetTotalDurationName
- HasAnimationLoop
- HasAnimationLoopName
- HasAnimationLoopNameD
- Init
- InitD
- InitSDK
- InsertDelay
- InsertDelayName
- InsertDelayNameD
- InsertFrame
- InsertFrameName
- InsertFrameNameD
- InvertColors
- InvertColorsAllFrames
- InvertColorsAllFramesName
- InvertColorsAllFramesNameD
- InvertColorsName
- InvertColorsNameD
- IsAnimationPaused
- IsAnimationPausedName
- IsAnimationPausedNameD
- IsDialogOpen
- IsDialogOpenD
- IsInitialized
- IsInitializedD
- IsPlatformSupported
- IsPlatformSupportedD
- IsPlaying
- IsPlayingD
- IsPlayingName
- IsPlayingNameD
- IsPlayingType
- IsPlayingTypeD
- Lerp
- LerpColor
- LoadAnimation
- LoadAnimationD
- LoadAnimationName
- LoadComposite
- MakeBlankFrames
- MakeBlankFramesName
- MakeBlankFramesNameD
- MakeBlankFramesRandom
- MakeBlankFramesRandomBlackAndWhite
- MakeBlankFramesRandomBlackAndWhiteName
- MakeBlankFramesRandomBlackAndWhiteNameD
- MakeBlankFramesRandomName
- MakeBlankFramesRandomNameD
- MakeBlankFramesRGB
- MakeBlankFramesRGBName
- MakeBlankFramesRGBNameD
- MirrorHorizontally
- MirrorVertically
- MultiplyColorLerpAllFrames
- MultiplyColorLerpAllFramesName
- MultiplyColorLerpAllFramesNameD
- MultiplyIntensity
- MultiplyIntensityAllFrames
- MultiplyIntensityAllFramesName
- MultiplyIntensityAllFramesNameD
- MultiplyIntensityAllFramesRGB
- MultiplyIntensityAllFramesRGBName
- MultiplyIntensityAllFramesRGBNameD
- MultiplyIntensityColor
- MultiplyIntensityColorAllFrames
- MultiplyIntensityColorAllFramesName
- MultiplyIntensityColorAllFramesNameD
- MultiplyIntensityColorName
- MultiplyIntensityColorNameD
- MultiplyIntensityName
- MultiplyIntensityNameD
- MultiplyIntensityRGB
- MultiplyIntensityRGBName
- MultiplyIntensityRGBNameD
- MultiplyNonZeroTargetColorLerp
- MultiplyNonZeroTargetColorLerpAllFrames
- MultiplyNonZeroTargetColorLerpAllFramesName
- MultiplyNonZeroTargetColorLerpAllFramesNameD
- MultiplyNonZeroTargetColorLerpAllFramesRGB
- MultiplyNonZeroTargetColorLerpAllFramesRGBName
- MultiplyNonZeroTargetColorLerpAllFramesRGBNameD
- MultiplyTargetColorLerp
- MultiplyTargetColorLerpAllFrames
- MultiplyTargetColorLerpAllFramesName
- MultiplyTargetColorLerpAllFramesNameD
- MultiplyTargetColorLerpAllFramesRGB
- MultiplyTargetColorLerpAllFramesRGBName
- MultiplyTargetColorLerpAllFramesRGBNameD
- MultiplyTargetColorLerpName
- OffsetColors
- OffsetColorsAllFrames
- OffsetColorsAllFramesName
- OffsetColorsAllFramesNameD
- OffsetColorsName
- OffsetColorsNameD
- OffsetNonZeroColors
- OffsetNonZeroColorsAllFrames
- OffsetNonZeroColorsAllFramesName
- OffsetNonZeroColorsAllFramesNameD
- OffsetNonZeroColorsName
- OffsetNonZeroColorsNameD
- OpenAnimation
- OpenAnimationD
- OpenAnimationFromMemory
- OpenEditorDialog
- OpenEditorDialogAndPlay
- OpenEditorDialogAndPlayD
- OpenEditorDialogD
- OverrideFrameDuration
- OverrideFrameDurationD
- OverrideFrameDurationName
- PauseAnimation
- PauseAnimationName
- PauseAnimationNameD
- PlayAnimation
- PlayAnimationD
- PlayAnimationFrame
- PlayAnimationFrameName
- PlayAnimationFrameNameD
- PlayAnimationLoop
- PlayAnimationName
- PlayAnimationNameD
- PlayComposite
- PlayCompositeD
- PreviewFrame
- PreviewFrameD
- PreviewFrameName
- ReduceFrames
- ReduceFramesName
- ReduceFramesNameD
- ResetAnimation
- ResumeAnimation
- ResumeAnimationName
- ResumeAnimationNameD
- Reverse
- ReverseAllFrames
- ReverseAllFramesName
- ReverseAllFramesNameD
- SaveAnimation
- SaveAnimationName
- Set1DColor
- Set1DColorName
- Set1DColorNameD
- Set2DColor
- Set2DColorName
- Set2DColorNameD
- SetChromaCustomColorAllFrames
- SetChromaCustomColorAllFramesName
- SetChromaCustomColorAllFramesNameD
- SetChromaCustomFlag
- SetChromaCustomFlagName
- SetChromaCustomFlagNameD
- SetCurrentFrame
- SetCurrentFrameName
- SetCurrentFrameNameD
- SetCustomColorFlag2D
- SetDevice
- SetEffect
- SetEffectCustom1D
- SetEffectCustom2D
- SetEffectKeyboardCustom2D
- SetIdleAnimation
- SetIdleAnimationName
- SetKeyColor
- SetKeyColorAllFrames
- SetKeyColorAllFramesName
- SetKeyColorAllFramesNameD
- SetKeyColorAllFramesRGB
- SetKeyColorAllFramesRGBName
- SetKeyColorAllFramesRGBNameD
- SetKeyColorName
- SetKeyColorNameD
- SetKeyColorRGB
- SetKeyColorRGBName
- SetKeyColorRGBNameD
- SetKeyNonZeroColor
- SetKeyNonZeroColorName
- SetKeyNonZeroColorNameD
- SetKeyNonZeroColorRGB
- SetKeyNonZeroColorRGBName
- SetKeyNonZeroColorRGBNameD
- SetKeyRowColumnColorName
- SetKeysColor
- SetKeysColorAllFrames
- SetKeysColorAllFramesName
- SetKeysColorAllFramesRGB
- SetKeysColorAllFramesRGBName
- SetKeysColorName
- SetKeysColorRGB
- SetKeysColorRGBName
- SetKeysNonZeroColor
- SetKeysNonZeroColorAllFrames
- SetKeysNonZeroColorAllFramesName
- SetKeysNonZeroColorName
- SetKeysNonZeroColorRGB
- SetKeysNonZeroColorRGBName
- SetKeysZeroColor
- SetKeysZeroColorAllFrames
- SetKeysZeroColorAllFramesName
- SetKeysZeroColorAllFramesRGB
- SetKeysZeroColorAllFramesRGBName
- SetKeysZeroColorName
- SetKeysZeroColorRGB
- SetKeysZeroColorRGBName
- SetKeyZeroColor
- SetKeyZeroColorName
- SetKeyZeroColorNameD
- SetKeyZeroColorRGB
- SetKeyZeroColorRGBName
- SetKeyZeroColorRGBNameD
- SetLogDelegate
- SetStaticColor
- SetStaticColorAll
- StaticColor
- StaticColorAll
- StaticColorD
- StopAll
- StopAnimation
- StopAnimationD
- StopAnimationName
- StopAnimationNameD
- StopAnimationType
- StopAnimationTypeD
- StopComposite
- StopCompositeD
- SubtractColor
- SubtractNonZeroAllKeys
- SubtractNonZeroAllKeysAllFrames
- SubtractNonZeroAllKeysAllFramesName
- SubtractNonZeroAllKeysAllFramesNameD
- SubtractNonZeroAllKeysAllFramesOffset
- SubtractNonZeroAllKeysAllFramesOffsetName
- SubtractNonZeroAllKeysAllFramesOffsetNameD
- SubtractNonZeroAllKeysName
- SubtractNonZeroAllKeysOffset
- SubtractNonZeroAllKeysOffsetName
- SubtractNonZeroAllKeysOffsetNameD
- SubtractNonZeroTargetAllKeysAllFrames
- SubtractNonZeroTargetAllKeysAllFramesName
- SubtractNonZeroTargetAllKeysAllFramesNameD
- SubtractNonZeroTargetAllKeysAllFramesOffset
- SubtractNonZeroTargetAllKeysAllFramesOffsetName
- SubtractNonZeroTargetAllKeysAllFramesOffsetNameD
- SubtractNonZeroTargetAllKeysOffset
- SubtractNonZeroTargetAllKeysOffsetName
- SubtractNonZeroTargetAllKeysOffsetNameD
- SubtractThresholdColorsMinMaxAllFramesRGB
- SubtractThresholdColorsMinMaxAllFramesRGBName
- SubtractThresholdColorsMinMaxAllFramesRGBNameD
- SubtractThresholdColorsMinMaxRGB
- SubtractThresholdColorsMinMaxRGBName
- SubtractThresholdColorsMinMaxRGBNameD
- TrimEndFrames
- TrimEndFramesName
- TrimEndFramesNameD
- TrimFrame
- TrimFrameName
- TrimFrameNameD
- TrimStartFrames
- TrimStartFramesName
- TrimStartFramesNameD
- Uninit
- UninitD
- UnloadAnimation
- UnloadAnimationD
- UnloadAnimationName
- UnloadComposite
- UnloadLibrarySDK
- UnloadLibraryStreamingPlugin
- UpdateFrame
- UpdateFrameName
- UseForwardChromaEvents
- UseIdleAnimation
- UseIdleAnimations
- UsePreloading
- UsePreloadingName
Return the sum of colors
int result = ChromaAnimationAPI.AddColor(int color1, int color2);
Adds a frame to the Chroma
animation and sets the duration
(in seconds).
The color
is expected to be an array of the dimensions for the deviceType/device
.
The length
parameter is the size of the color
array. For EChromaSDKDevice1DEnum
the array size should be MAX LEDS
. For EChromaSDKDevice2DEnum
the array
size should be MAX ROW
times MAX COLUMN
. Returns the animation id upon
success. Returns negative one upon failure.
int result = ChromaAnimationAPI.AddFrame(int animationId, float duration, int[] colors, int length);
Add source color to target where color is not black for frame id, reference source and target by id.
ChromaAnimationAPI.AddNonZeroAllKeys(int sourceAnimationId, int targetAnimationId, int frameId);
Add source color to target where color is not black for all frames, reference source and target by id.
ChromaAnimationAPI.AddNonZeroAllKeysAllFrames(int sourceAnimationId, int targetAnimationId);
AddNonZeroAllKeysAllFramesName
Add source color to target where color is not black for all frames, reference source and target by name.
ChromaAnimationAPI.AddNonZeroAllKeysAllFramesName(string sourceAnimation, string targetAnimation);
AddNonZeroAllKeysAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.AddNonZeroAllKeysAllFramesNameD(string sourceAnimation, string targetAnimation);
AddNonZeroAllKeysAllFramesOffset
Add source color to target where color is not black for all frames starting at offset for the length of the source, reference source and target by id.
ChromaAnimationAPI.AddNonZeroAllKeysAllFramesOffset(int sourceAnimationId, int targetAnimationId, int offset);
AddNonZeroAllKeysAllFramesOffsetName
Add source color to target where color is not black for all frames starting at offset for the length of the source, reference source and target by name.
ChromaAnimationAPI.AddNonZeroAllKeysAllFramesOffsetName(string sourceAnimation, string targetAnimation, int offset);
AddNonZeroAllKeysAllFramesOffsetNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.AddNonZeroAllKeysAllFramesOffsetNameD(string sourceAnimation, string targetAnimation, double offset);
Add source color to target where color is not black for frame id, reference source and target by name.
ChromaAnimationAPI.AddNonZeroAllKeysName(string sourceAnimation, string targetAnimation, int frameId);
Add source color to target where color is not black for the source frame and target offset frame, reference source and target by id.
ChromaAnimationAPI.AddNonZeroAllKeysOffset(int sourceAnimationId, int targetAnimationId, int frameId, int offset);
Add source color to target where color is not black for the source frame and target offset frame, reference source and target by name.
ChromaAnimationAPI.AddNonZeroAllKeysOffsetName(string sourceAnimation, string targetAnimation, int frameId, int offset);
D suffix for limited data types.
double result = ChromaAnimationAPI.AddNonZeroAllKeysOffsetNameD(string sourceAnimation, string targetAnimation, double frameId, double offset);
AddNonZeroTargetAllKeysAllFrames
Add source color to target where the target color is not black for all frames, reference source and target by id.
ChromaAnimationAPI.AddNonZeroTargetAllKeysAllFrames(int sourceAnimationId, int targetAnimationId);
AddNonZeroTargetAllKeysAllFramesName
Add source color to target where the target color is not black for all frames, reference source and target by name.
ChromaAnimationAPI.AddNonZeroTargetAllKeysAllFramesName(string sourceAnimation, string targetAnimation);
AddNonZeroTargetAllKeysAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.AddNonZeroTargetAllKeysAllFramesNameD(string sourceAnimation, string targetAnimation);
AddNonZeroTargetAllKeysAllFramesOffset
Add source color to target where the target color is not black for all frames starting at offset for the length of the source, reference source and target by id.
ChromaAnimationAPI.AddNonZeroTargetAllKeysAllFramesOffset(int sourceAnimationId, int targetAnimationId, int offset);
AddNonZeroTargetAllKeysAllFramesOffsetName
Add source color to target where the target color is not black for all frames starting at offset for the length of the source, reference source and target by name.
ChromaAnimationAPI.AddNonZeroTargetAllKeysAllFramesOffsetName(string sourceAnimation, string targetAnimation, int offset);
AddNonZeroTargetAllKeysAllFramesOffsetNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.AddNonZeroTargetAllKeysAllFramesOffsetNameD(string sourceAnimation, string targetAnimation, double offset);
Add source color to target where target color is not blank from the source frame to the target offset frame, reference source and target by id.
ChromaAnimationAPI.AddNonZeroTargetAllKeysOffset(int sourceAnimationId, int targetAnimationId, int frameId, int offset);
AddNonZeroTargetAllKeysOffsetName
Add source color to target where target color is not blank from the source frame to the target offset frame, reference source and target by name.
ChromaAnimationAPI.AddNonZeroTargetAllKeysOffsetName(string sourceAnimation, string targetAnimation, int frameId, int offset);
AddNonZeroTargetAllKeysOffsetNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.AddNonZeroTargetAllKeysOffsetNameD(string sourceAnimation, string targetAnimation, double frameId, double offset);
Append all source frames to the target animation, reference source and target by id.
ChromaAnimationAPI.AppendAllFrames(int sourceAnimationId, int targetAnimationId);
Append all source frames to the target animation, reference source and target by name.
ChromaAnimationAPI.AppendAllFramesName(string sourceAnimation, string targetAnimation);
D suffix for limited data types.
double result = ChromaAnimationAPI.AppendAllFramesNameD(string sourceAnimation, string targetAnimation);
PluginClearAll
will issue a CLEAR
effect for all devices.
ChromaAnimationAPI.ClearAll();
PluginClearAnimationType
will issue a CLEAR
effect for the given device.
ChromaAnimationAPI.ClearAnimationType(int deviceType, int device);
PluginCloseAll
closes all open animations so they can be reloaded from
disk. The set of animations will be stopped if playing.
ChromaAnimationAPI.CloseAll();
Closes the Chroma
animation to free up resources referenced by id. Returns
the animation id upon success. Returns negative one upon failure. This
might be used while authoring effects if there was a change necessitating
re-opening the animation. The animation id can no longer be used once closed.
int result = ChromaAnimationAPI.CloseAnimation(int animationId);
D suffix for limited data types.
double result = ChromaAnimationAPI.CloseAnimationD(double animationId);
Closes the Chroma
animation referenced by name so that the animation can
be reloaded from disk.
ChromaAnimationAPI.CloseAnimationName(string path);
D suffix for limited data types.
double result = ChromaAnimationAPI.CloseAnimationNameD(string path);
PluginCloseComposite
closes a set of animations so they can be reloaded
from disk. The set of animations will be stopped if playing.
ChromaAnimationAPI.CloseComposite(string name);
D suffix for limited data types.
double result = ChromaAnimationAPI.CloseCompositeD(string name);
Copy source animation to target animation for the given frame. Source and target are referenced by id.
ChromaAnimationAPI.CopyAllKeys(int sourceAnimationId, int targetAnimationId, int frameId);
Copy source animation to target animation for the given frame. Source and target are referenced by id.
ChromaAnimationAPI.CopyAllKeysName(string sourceAnimation, string targetAnimation, int frameId);
Copy animation to named target animation in memory. If target animation exists, close first. Source is referenced by id.
int result = ChromaAnimationAPI.CopyAnimation(int sourceAnimationId, string targetAnimation);
Copy animation to named target animation in memory. If target animation exists, close first. Source is referenced by name.
ChromaAnimationAPI.CopyAnimationName(string sourceAnimation, string targetAnimation);
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyAnimationNameD(string sourceAnimation, string targetAnimation);
Copy blue channel to other channels for all frames. Intensity range is 0.0 to 1.0. Reference the animation by id.
ChromaAnimationAPI.CopyBlueChannelAllFrames(int animationId, float redIntensity, float greenIntensity);
Copy blue channel to other channels for all frames. Intensity range is 0.0 to 1.0. Reference the animation by name.
ChromaAnimationAPI.CopyBlueChannelAllFramesName(string path, float redIntensity, float greenIntensity);
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyBlueChannelAllFramesNameD(string path, double redIntensity, double greenIntensity);
Copy green channel to other channels for all frames. Intensity range is 0.0 to 1.0. Reference the animation by id.
ChromaAnimationAPI.CopyGreenChannelAllFrames(int animationId, float redIntensity, float blueIntensity);
Copy green channel to other channels for all frames. Intensity range is 0.0 to 1.0. Reference the animation by name.
ChromaAnimationAPI.CopyGreenChannelAllFramesName(string path, float redIntensity, float blueIntensity);
CopyGreenChannelAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyGreenChannelAllFramesNameD(string path, double redIntensity, double blueIntensity);
Copy animation key color from the source animation to the target animation for the given frame. Reference the source and target by id.
ChromaAnimationAPI.CopyKeyColor(int sourceAnimationId, int targetAnimationId, int frameId, int rzkey);
Copy animation key color from the source animation to the target animation for all frames. Reference the source and target by id.
ChromaAnimationAPI.CopyKeyColorAllFrames(int sourceAnimationId, int targetAnimationId, int rzkey);
Copy animation key color from the source animation to the target animation for all frames. Reference the source and target by name.
ChromaAnimationAPI.CopyKeyColorAllFramesName(string sourceAnimation, string targetAnimation, int rzkey);
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyKeyColorAllFramesNameD(string sourceAnimation, string targetAnimation, double rzkey);
Copy animation key color from the source animation to the target animation for all frames, starting at the offset for the length of the source animation. Source and target are referenced by id.
ChromaAnimationAPI.CopyKeyColorAllFramesOffset(int sourceAnimationId, int targetAnimationId, int rzkey, int offset);
CopyKeyColorAllFramesOffsetName
Copy animation key color from the source animation to the target animation for all frames, starting at the offset for the length of the source animation. Source and target are referenced by name.
ChromaAnimationAPI.CopyKeyColorAllFramesOffsetName(string sourceAnimation, string targetAnimation, int rzkey, int offset);
CopyKeyColorAllFramesOffsetNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyKeyColorAllFramesOffsetNameD(string sourceAnimation, string targetAnimation, double rzkey, double offset);
Copy animation key color from the source animation to the target animation for the given frame.
ChromaAnimationAPI.CopyKeyColorName(string sourceAnimation, string targetAnimation, int frameId, int rzkey);
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyKeyColorNameD(string sourceAnimation, string targetAnimation, double frameId, double rzkey);
Copy animation color for a set of keys from the source animation to the target animation for the given frame. Reference the source and target by id.
ChromaAnimationAPI.CopyKeysColor(int sourceAnimationId, int targetAnimationId, int frameId, int[] keys, int size);
Copy animation color for a set of keys from the source animation to the target animation for all frames. Reference the source and target by id.
ChromaAnimationAPI.CopyKeysColorAllFrames(int sourceAnimationId, int targetAnimationId, int[] keys, int size);
Copy animation color for a set of keys from the source animation to the target animation for all frames. Reference the source and target by name.
ChromaAnimationAPI.CopyKeysColorAllFramesName(string sourceAnimation, string targetAnimation, int[] keys, int size);
Copy animation color for a set of keys from the source animation to the target animation for the given frame. Reference the source and target by name.
ChromaAnimationAPI.CopyKeysColorName(string sourceAnimation, string targetAnimation, int frameId, int[] keys, int size);
Copy animation color for a set of keys from the source animation to the target animation from the source frame to the target frame. Reference the source and target by id.
ChromaAnimationAPI.CopyKeysColorOffset(int sourceAnimationId, int targetAnimationId, int sourceFrameId, int targetFrameId, int[] keys, int size);
Copy animation color for a set of keys from the source animation to the target animation from the source frame to the target frame. Reference the source and target by name.
ChromaAnimationAPI.CopyKeysColorOffsetName(string sourceAnimation, string targetAnimation, int sourceFrameId, int targetFrameId, int[] keys, int size);
Copy source animation to target animation for the given frame. Source and target are referenced by id.
ChromaAnimationAPI.CopyNonZeroAllKeys(int sourceAnimationId, int targetAnimationId, int frameId);
Copy nonzero colors from a source animation to a target animation for all frames. Reference source and target by id.
ChromaAnimationAPI.CopyNonZeroAllKeysAllFrames(int sourceAnimationId, int targetAnimationId);
CopyNonZeroAllKeysAllFramesName
Copy nonzero colors from a source animation to a target animation for all frames. Reference source and target by name.
ChromaAnimationAPI.CopyNonZeroAllKeysAllFramesName(string sourceAnimation, string targetAnimation);
CopyNonZeroAllKeysAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyNonZeroAllKeysAllFramesNameD(string sourceAnimation, string targetAnimation);
CopyNonZeroAllKeysAllFramesOffset
Copy nonzero colors from a source animation to a target animation for all frames starting at the offset for the length of the source animation. The source and target are referenced by id.
ChromaAnimationAPI.CopyNonZeroAllKeysAllFramesOffset(int sourceAnimationId, int targetAnimationId, int offset);
CopyNonZeroAllKeysAllFramesOffsetName
Copy nonzero colors from a source animation to a target animation for all frames starting at the offset for the length of the source animation. The source and target are referenced by name.
ChromaAnimationAPI.CopyNonZeroAllKeysAllFramesOffsetName(string sourceAnimation, string targetAnimation, int offset);
CopyNonZeroAllKeysAllFramesOffsetNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyNonZeroAllKeysAllFramesOffsetNameD(string sourceAnimation, string targetAnimation, double offset);
Copy nonzero colors from source animation to target animation for the specified frame. Source and target are referenced by id.
ChromaAnimationAPI.CopyNonZeroAllKeysName(string sourceAnimation, string targetAnimation, int frameId);
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyNonZeroAllKeysNameD(string sourceAnimation, string targetAnimation, double frameId);
Copy nonzero colors from the source animation to the target animation from the source frame to the target offset frame. Source and target are referenced by id.
ChromaAnimationAPI.CopyNonZeroAllKeysOffset(int sourceAnimationId, int targetAnimationId, int frameId, int offset);
Copy nonzero colors from the source animation to the target animation from the source frame to the target offset frame. Source and target are referenced by name.
ChromaAnimationAPI.CopyNonZeroAllKeysOffsetName(string sourceAnimation, string targetAnimation, int frameId, int offset);
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyNonZeroAllKeysOffsetNameD(string sourceAnimation, string targetAnimation, double frameId, double offset);
Copy animation key color from the source animation to the target animation for the given frame where color is not zero.
ChromaAnimationAPI.CopyNonZeroKeyColor(int sourceAnimationId, int targetAnimationId, int frameId, int rzkey);
Copy animation key color from the source animation to the target animation for the given frame where color is not zero.
ChromaAnimationAPI.CopyNonZeroKeyColorName(string sourceAnimation, string targetAnimation, int frameId, int rzkey);
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyNonZeroKeyColorNameD(string sourceAnimation, string targetAnimation, double frameId, double rzkey);
Copy nonzero colors from the source animation to the target animation where the target color is nonzero for the specified frame. Source and target are referenced by id.
ChromaAnimationAPI.CopyNonZeroTargetAllKeys(int sourceAnimationId, int targetAnimationId, int frameId);
CopyNonZeroTargetAllKeysAllFrames
Copy nonzero colors from the source animation to the target animation where the target color is nonzero for all frames. Source and target are referenced by id.
ChromaAnimationAPI.CopyNonZeroTargetAllKeysAllFrames(int sourceAnimationId, int targetAnimationId);
CopyNonZeroTargetAllKeysAllFramesName
Copy nonzero colors from the source animation to the target animation where the target color is nonzero for all frames. Source and target are referenced by name.
ChromaAnimationAPI.CopyNonZeroTargetAllKeysAllFramesName(string sourceAnimation, string targetAnimation);
CopyNonZeroTargetAllKeysAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyNonZeroTargetAllKeysAllFramesNameD(string sourceAnimation, string targetAnimation);
CopyNonZeroTargetAllKeysAllFramesOffset
Copy nonzero colors from the source animation to the target animation where the target color is nonzero for all frames. Source and target are referenced by name.
ChromaAnimationAPI.CopyNonZeroTargetAllKeysAllFramesOffset(int sourceAnimationId, int targetAnimationId, int offset);
CopyNonZeroTargetAllKeysAllFramesOffsetName
Copy nonzero colors from the source animation to the target animation where the target color is nonzero for all frames starting at the target offset for the length of the source animation. Source and target animations are referenced by name.
ChromaAnimationAPI.CopyNonZeroTargetAllKeysAllFramesOffsetName(string sourceAnimation, string targetAnimation, int offset);
CopyNonZeroTargetAllKeysAllFramesOffsetNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyNonZeroTargetAllKeysAllFramesOffsetNameD(string sourceAnimation, string targetAnimation, double offset);
Copy nonzero colors from the source animation to the target animation where the target color is nonzero for the specified frame. The source and target are referenced by name.
ChromaAnimationAPI.CopyNonZeroTargetAllKeysName(string sourceAnimation, string targetAnimation, int frameId);
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyNonZeroTargetAllKeysNameD(string sourceAnimation, string targetAnimation, double frameId);
CopyNonZeroTargetAllKeysOffset
Copy nonzero colors from the source animation to the target animation where the target color is nonzero for the specified source frame and target offset frame. The source and target are referenced by id.
ChromaAnimationAPI.CopyNonZeroTargetAllKeysOffset(int sourceAnimationId, int targetAnimationId, int frameId, int offset);
CopyNonZeroTargetAllKeysOffsetName
Copy nonzero colors from the source animation to the target animation where the target color is nonzero for the specified source frame and target offset frame. The source and target are referenced by name.
ChromaAnimationAPI.CopyNonZeroTargetAllKeysOffsetName(string sourceAnimation, string targetAnimation, int frameId, int offset);
CopyNonZeroTargetAllKeysOffsetNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyNonZeroTargetAllKeysOffsetNameD(string sourceAnimation, string targetAnimation, double frameId, double offset);
CopyNonZeroTargetZeroAllKeysAllFrames
Copy nonzero colors from the source animation to the target animation where the target color is zero for all frames. Source and target are referenced by id.
ChromaAnimationAPI.CopyNonZeroTargetZeroAllKeysAllFrames(int sourceAnimationId, int targetAnimationId);
CopyNonZeroTargetZeroAllKeysAllFramesName
Copy nonzero colors from the source animation to the target animation where the target color is zero for all frames. Source and target are referenced by name.
ChromaAnimationAPI.CopyNonZeroTargetZeroAllKeysAllFramesName(string sourceAnimation, string targetAnimation);
CopyNonZeroTargetZeroAllKeysAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyNonZeroTargetZeroAllKeysAllFramesNameD(string sourceAnimation, string targetAnimation);
Copy red channel to other channels for all frames. Intensity range is 0.0 to 1.0. Reference the animation by id.
ChromaAnimationAPI.CopyRedChannelAllFrames(int animationId, float greenIntensity, float blueIntensity);
Copy green channel to other channels for all frames. Intensity range is 0.0 to 1.0. Reference the animation by name.
ChromaAnimationAPI.CopyRedChannelAllFramesName(string path, float greenIntensity, float blueIntensity);
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyRedChannelAllFramesNameD(string path, double greenIntensity, double blueIntensity);
Copy zero colors from source animation to target animation for the frame. Source and target are referenced by id.
ChromaAnimationAPI.CopyZeroAllKeys(int sourceAnimationId, int targetAnimationId, int frameId);
Copy zero colors from source animation to target animation for all frames. Source and target are referenced by id.
ChromaAnimationAPI.CopyZeroAllKeysAllFrames(int sourceAnimationId, int targetAnimationId);
Copy zero colors from source animation to target animation for all frames. Source and target are referenced by name.
ChromaAnimationAPI.CopyZeroAllKeysAllFramesName(string sourceAnimation, string targetAnimation);
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyZeroAllKeysAllFramesNameD(string sourceAnimation, string targetAnimation);
CopyZeroAllKeysAllFramesOffset
Copy zero colors from source animation to target animation for all frames starting at the target offset for the length of the source animation. Source and target are referenced by id.
ChromaAnimationAPI.CopyZeroAllKeysAllFramesOffset(int sourceAnimationId, int targetAnimationId, int offset);
CopyZeroAllKeysAllFramesOffsetName
Copy zero colors from source animation to target animation for all frames starting at the target offset for the length of the source animation. Source and target are referenced by name.
ChromaAnimationAPI.CopyZeroAllKeysAllFramesOffsetName(string sourceAnimation, string targetAnimation, int offset);
CopyZeroAllKeysAllFramesOffsetNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyZeroAllKeysAllFramesOffsetNameD(string sourceAnimation, string targetAnimation, double offset);
Copy zero colors from source animation to target animation for the frame. Source and target are referenced by name.
ChromaAnimationAPI.CopyZeroAllKeysName(string sourceAnimation, string targetAnimation, int frameId);
Copy zero colors from source animation to target animation for the frame id starting at the target offset for the length of the source animation. Source and target are referenced by id.
ChromaAnimationAPI.CopyZeroAllKeysOffset(int sourceAnimationId, int targetAnimationId, int frameId, int offset);
Copy zero colors from source animation to target animation for the frame id starting at the target offset for the length of the source animation. Source and target are referenced by name.
ChromaAnimationAPI.CopyZeroAllKeysOffsetName(string sourceAnimation, string targetAnimation, int frameId, int offset);
Copy zero key color from source animation to target animation for the specified frame. Source and target are referenced by id.
ChromaAnimationAPI.CopyZeroKeyColor(int sourceAnimationId, int targetAnimationId, int frameId, int rzkey);
Copy zero key color from source animation to target animation for the specified frame. Source and target are referenced by name.
ChromaAnimationAPI.CopyZeroKeyColorName(string sourceAnimation, string targetAnimation, int frameId, int rzkey);
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyZeroKeyColorNameD(string sourceAnimation, string targetAnimation, double frameId, double rzkey);
Copy nonzero color from source animation to target animation where target is zero for the frame. Source and target are referenced by id.
ChromaAnimationAPI.CopyZeroTargetAllKeys(int sourceAnimationId, int targetAnimationId, int frameId);
CopyZeroTargetAllKeysAllFrames
Copy nonzero color from source animation to target animation where target is zero for all frames. Source and target are referenced by id.
ChromaAnimationAPI.CopyZeroTargetAllKeysAllFrames(int sourceAnimationId, int targetAnimationId);
CopyZeroTargetAllKeysAllFramesName
Copy nonzero color from source animation to target animation where target is zero for all frames. Source and target are referenced by name.
ChromaAnimationAPI.CopyZeroTargetAllKeysAllFramesName(string sourceAnimation, string targetAnimation);
CopyZeroTargetAllKeysAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.CopyZeroTargetAllKeysAllFramesNameD(string sourceAnimation, string targetAnimation);
Copy nonzero color from source animation to target animation where target is zero for the frame. Source and target are referenced by name.
ChromaAnimationAPI.CopyZeroTargetAllKeysName(string sourceAnimation, string targetAnimation, int frameId);
Direct access to low level API.
int result = ChromaAnimationAPI.CoreCreateChromaLinkEffect(int effect, IntPtr pParam, out Guid pEffectId);
Direct access to low level API.
int result = ChromaAnimationAPI.CoreCreateEffect(Guid deviceId, EFFECT_TYPE effect, IntPtr pParam, out Guid pEffectId);
Direct access to low level API.
int result = ChromaAnimationAPI.CoreCreateHeadsetEffect(int effect, IntPtr pParam, out Guid pEffectId);
Direct access to low level API.
int result = ChromaAnimationAPI.CoreCreateKeyboardEffect(int effect, IntPtr pParam, out Guid pEffectId);
Direct access to low level API.
int result = ChromaAnimationAPI.CoreCreateKeypadEffect(int effect, IntPtr pParam, out Guid pEffectId);
Direct access to low level API.
int result = ChromaAnimationAPI.CoreCreateMouseEffect(int effect, IntPtr pParam, out Guid pEffectId);
Direct access to low level API.
int result = ChromaAnimationAPI.CoreCreateMousepadEffect(int effect, IntPtr pParam, out Guid pEffectId);
Direct access to low level API.
int result = ChromaAnimationAPI.CoreDeleteEffect(Guid effectId);
Direct access to low level API.
int result = ChromaAnimationAPI.CoreInit();
Direct access to low level API.
int result = ChromaAnimationAPI.CoreInitSDK(ref ChromaSDK.APPINFOTYPE appInfo);
Direct access to low level API.
int result = ChromaAnimationAPI.CoreIsActive(BOOL& active);
Direct access to low level API.
int result = ChromaAnimationAPI.CoreIsConnected(ChromaSDK::DEVICE_INFO_TYPE& deviceInfo);
Direct access to low level API.
int result = ChromaAnimationAPI.CoreQueryDevice(Guid deviceId, out DEVICE_INFO_TYPE deviceInfo);
Direct access to low level API.
int result = ChromaAnimationAPI.CoreSetEffect(Guid effectId);
Direct access to low level API.
int result = ChromaAnimationAPI.CoreSetEventName(LPCTSTR name);
Begin broadcasting Chroma RGB data using the stored stream key as the endpoint. Intended for Cloud Gaming Platforms, restore the streaming key when the game instance is launched to continue streaming. streamId is a null terminated string streamKey is a null terminated string StreamGetStatus() should return the READY status to use this method.
bool result = ChromaAnimationAPI.CoreStreamBroadcast(string streamId, string streamKey);
End broadcasting Chroma RGB data. StreamGetStatus() should return the BROADCASTING status to use this method.
bool result = ChromaAnimationAPI.CoreStreamBroadcastEnd();
shortcode: Pass the address of a preallocated character buffer to get the streaming auth code. The buffer should have a minimum length of 6. length: Length will return as zero if the streaming auth code could not be obtained. If length is greater than zero, it will be the length of the returned streaming auth code. Once you have the shortcode, it should be shown to the user so they can associate the stream with their Razer ID StreamGetStatus() should return the READY status before invoking this method. platform: is the null terminated string that identifies the source of the stream: { GEFORCE_NOW, LUNA, STADIA, GAME_PASS } title: is the null terminated string that identifies the application or game.
ChromaAnimationAPI.CoreStreamGetAuthShortcode(ref string shortcode, out byte length, string platform, string title);
focus: Pass the address of a preallocated character buffer to get the stream focus. The buffer should have a length of 48 length: Length will return as zero if the stream focus could not be obtained. If length is greater than zero, it will be the length of the returned stream focus.
bool result = ChromaAnimationAPI.CoreStreamGetFocus(ref string focus, out byte length);
Intended for Cloud Gaming Platforms, store the stream id to persist in user preferences to continue streaming if the game is suspended or closed. shortcode: The shortcode is a null terminated string. Use the shortcode that authorized the stream to obtain the stream id. streamId should be a preallocated buffer to get the stream key. The buffer should have a length of 48. length: Length will return zero if the key could not be obtained. If the length is greater than zero, it will be the length of the returned streaming id. Retrieve the stream id after authorizing the shortcode. The authorization window will expire in 5 minutes. Be sure to save the stream key before the window expires. StreamGetStatus() should return the READY status to use this method.
ChromaAnimationAPI.CoreStreamGetId(string shortcode, ref string streamId, out byte length);
Intended for Cloud Gaming Platforms, store the streaming key to persist in user preferences to continue streaming if the game is suspended or closed. shortcode: The shortcode is a null terminated string. Use the shortcode that authorized the stream to obtain the stream key. If the status is in the BROADCASTING or WATCHING state, passing a NULL shortcode will return the active streamId. streamKey should be a preallocated buffer to get the stream key. The buffer should have a length of 48. length: Length will return zero if the key could not be obtained. If the length is greater than zero, it will be the length of the returned streaming key. Retrieve the stream key after authorizing the shortcode. The authorization window will expire in 5 minutes. Be sure to save the stream key before the window expires. StreamGetStatus() should return the READY status to use this method.
ChromaAnimationAPI.CoreStreamGetKey(string shortcode, ref string streamKey, out byte length);
Returns StreamStatus, the current status of the service
ChromaSDK.Stream.StreamStatusType result = ChromaAnimationAPI.CoreStreamGetStatus();
Convert StreamStatusType to a printable string
string result = ChromaAnimationAPI.CoreStreamGetStatusString(ChromaSDK.Stream.StreamStatusType status);
This prevents the stream id and stream key from being obtained through the shortcode. This closes the auth window. shortcode is a null terminated string. StreamGetStatus() should return the READY status to use this method. returns success when shortcode has been released
bool result = ChromaAnimationAPI.CoreStreamReleaseShortcode(string shortcode);
The focus is a null terminated string. Set the focus identifer for the application designated to automatically change the streaming state. Returns true on success.
bool result = ChromaAnimationAPI.CoreStreamSetFocus(string focus);
Returns true if the Chroma streaming is supported. If false is returned, avoid calling stream methods.
bool result = ChromaAnimationAPI.CoreStreamSupportsStreaming();
Begin watching the Chroma RGB data using streamID parameter. streamId is a null terminated string. StreamGetStatus() should return the READY status to use this method.
bool result = ChromaAnimationAPI.CoreStreamWatch(string streamId, ulong timestamp);
End watching Chroma RGB data stream. StreamGetStatus() should return the WATCHING status to use this method.
bool result = ChromaAnimationAPI.CoreStreamWatchEnd();
Direct access to low level API.
int result = ChromaAnimationAPI.CoreUnInit();
Creates a Chroma
animation at the given path. The deviceType
parameter
uses EChromaSDKDeviceTypeEnum
as an integer. The device
parameter uses
EChromaSDKDevice1DEnum
or EChromaSDKDevice2DEnum
as an integer, respective
to the deviceType
. Returns the animation id upon success. Returns negative
one upon failure. Saves a Chroma
animation file with the .chroma
extension
at the given path. Returns the animation id upon success. Returns negative
one upon failure.
int result = ChromaAnimationAPI.CreateAnimation(string path, int deviceType, int device);
Creates a Chroma
animation in memory without creating a file. The deviceType
parameter uses EChromaSDKDeviceTypeEnum
as an integer. The device
parameter
uses EChromaSDKDevice1DEnum
or EChromaSDKDevice2DEnum
as an integer,
respective to the deviceType
. Returns the animation id upon success.
Returns negative one upon failure. Returns the animation id upon success.
Returns negative one upon failure.
int result = ChromaAnimationAPI.CreateAnimationInMemory(int deviceType, int device);
Create a device specific effect.
int result = ChromaAnimationAPI.CreateEffect(Guid deviceId, EFFECT_TYPE effect, int[] colors, int size, out FChromaSDKGuid effectId);
Delete an effect given the effect id.
int result = ChromaAnimationAPI.DeleteEffect(Guid effectId);
Duplicate the first animation frame so that the animation length matches the frame count. Animation is referenced by id.
ChromaAnimationAPI.DuplicateFirstFrame(int animationId, int frameCount);
Duplicate the first animation frame so that the animation length matches the frame count. Animation is referenced by name.
ChromaAnimationAPI.DuplicateFirstFrameName(string path, int frameCount);
D suffix for limited data types.
double result = ChromaAnimationAPI.DuplicateFirstFrameNameD(string path, double frameCount);
Duplicate all the frames of the animation to double the animation length. Frame 1 becomes frame 1 and 2. Frame 2 becomes frame 3 and 4. And so on. The animation is referenced by id.
ChromaAnimationAPI.DuplicateFrames(int animationId);
Duplicate all the frames of the animation to double the animation length. Frame 1 becomes frame 1 and 2. Frame 2 becomes frame 3 and 4. And so on. The animation is referenced by name.
ChromaAnimationAPI.DuplicateFramesName(string path);
D suffix for limited data types.
double result = ChromaAnimationAPI.DuplicateFramesNameD(string path);
Duplicate all the animation frames in reverse so that the animation plays forwards and backwards. Animation is referenced by id.
ChromaAnimationAPI.DuplicateMirrorFrames(int animationId);
Duplicate all the animation frames in reverse so that the animation plays forwards and backwards. Animation is referenced by name.
ChromaAnimationAPI.DuplicateMirrorFramesName(string path);
D suffix for limited data types.
double result = ChromaAnimationAPI.DuplicateMirrorFramesNameD(string path);
Fade the animation to black starting at the fade frame index to the end of the animation. Animation is referenced by id.
ChromaAnimationAPI.FadeEndFrames(int animationId, int fade);
Fade the animation to black starting at the fade frame index to the end of the animation. Animation is referenced by name.
ChromaAnimationAPI.FadeEndFramesName(string path, int fade);
D suffix for limited data types.
double result = ChromaAnimationAPI.FadeEndFramesNameD(string path, double fade);
Fade the animation from black to full color starting at 0 to the fade frame index. Animation is referenced by id.
ChromaAnimationAPI.FadeStartFrames(int animationId, int fade);
Fade the animation from black to full color starting at 0 to the fade frame index. Animation is referenced by name.
ChromaAnimationAPI.FadeStartFramesName(string path, int fade);
D suffix for limited data types.
double result = ChromaAnimationAPI.FadeStartFramesNameD(string path, double fade);
Set the RGB value for all colors in the specified frame. Animation is referenced by id.
ChromaAnimationAPI.FillColor(int animationId, int frameId, int color);
Set the RGB value for all colors for all frames. Animation is referenced by id.
ChromaAnimationAPI.FillColorAllFrames(int animationId, int color);
Set the RGB value for all colors for all frames. Animation is referenced by name.
ChromaAnimationAPI.FillColorAllFramesName(string path, int color);
D suffix for limited data types.
double result = ChromaAnimationAPI.FillColorAllFramesNameD(string path, double color);
Set the RGB value for all colors for all frames. Use the range of 0 to 255 for red, green, and blue parameters. Animation is referenced by id.
ChromaAnimationAPI.FillColorAllFramesRGB(int animationId, int red, int green, int blue);
Set the RGB value for all colors for all frames. Use the range of 0 to 255 for red, green, and blue parameters. Animation is referenced by name.
ChromaAnimationAPI.FillColorAllFramesRGBName(string path, int red, int green, int blue);
D suffix for limited data types.
double result = ChromaAnimationAPI.FillColorAllFramesRGBNameD(string path, double red, double green, double blue);
Set the RGB value for all colors in the specified frame. Animation is referenced by name.
ChromaAnimationAPI.FillColorName(string path, int frameId, int color);
D suffix for limited data types.
double result = ChromaAnimationAPI.FillColorNameD(string path, double frameId, double color);
Set the RGB value for all colors in the specified frame. Animation is referenced by id.
ChromaAnimationAPI.FillColorRGB(int animationId, int frameId, int red, int green, int blue);
Set the RGB value for all colors in the specified frame. Animation is referenced by name.
ChromaAnimationAPI.FillColorRGBName(string path, int frameId, int red, int green, int blue);
D suffix for limited data types.
double result = ChromaAnimationAPI.FillColorRGBNameD(string path, double frameId, double red, double green, double blue);
This method will only update colors in the animation that are not already set to black. Set the RGB value for a subset of colors in the specified frame. Animation is referenced by id.
ChromaAnimationAPI.FillNonZeroColor(int animationId, int frameId, int color);
This method will only update colors in the animation that are not already set to black. Set the RGB value for a subset of colors for all frames. Animation is referenced by id.
ChromaAnimationAPI.FillNonZeroColorAllFrames(int animationId, int color);
This method will only update colors in the animation that are not already set to black. Set the RGB value for a subset of colors for all frames. Animation is referenced by name.
ChromaAnimationAPI.FillNonZeroColorAllFramesName(string path, int color);
FillNonZeroColorAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.FillNonZeroColorAllFramesNameD(string path, double color);
This method will only update colors in the animation that are not already set to black. Set the RGB value for a subset of colors for all frames. Use the range of 0 to 255 for red, green, and blue parameters. Animation is referenced by id.
ChromaAnimationAPI.FillNonZeroColorAllFramesRGB(int animationId, int red, int green, int blue);
FillNonZeroColorAllFramesRGBName
This method will only update colors in the animation that are not already set to black. Set the RGB value for a subset of colors for all frames. Use the range of 0 to 255 for red, green, and blue parameters. Animation is referenced by name.
ChromaAnimationAPI.FillNonZeroColorAllFramesRGBName(string path, int red, int green, int blue);
FillNonZeroColorAllFramesRGBNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.FillNonZeroColorAllFramesRGBNameD(string path, double red, double green, double blue);
This method will only update colors in the animation that are not already set to black. Set the RGB value for a subset of colors in the specified frame. Animation is referenced by name.
ChromaAnimationAPI.FillNonZeroColorName(string path, int frameId, int color);
D suffix for limited data types.
double result = ChromaAnimationAPI.FillNonZeroColorNameD(string path, double frameId, double color);
This method will only update colors in the animation that are not already set to black. Set the RGB value for a subset of colors in the specified frame. Use the range of 0 to 255 for red, green, and blue parameters. Animation is referenced by id.
ChromaAnimationAPI.FillNonZeroColorRGB(int animationId, int frameId, int red, int green, int blue);
This method will only update colors in the animation that are not already set to black. Set the RGB value for a subset of colors in the specified frame. Use the range of 0 to 255 for red, green, and blue parameters. Animation is referenced by name.
ChromaAnimationAPI.FillNonZeroColorRGBName(string path, int frameId, int red, int green, int blue);
D suffix for limited data types.
double result = ChromaAnimationAPI.FillNonZeroColorRGBNameD(string path, double frameId, double red, double green, double blue);
Fill the frame with random RGB values for the given frame. Animation is referenced by id.
ChromaAnimationAPI.FillRandomColors(int animationId, int frameId);
Fill the frame with random RGB values for all frames. Animation is referenced by id.
ChromaAnimationAPI.FillRandomColorsAllFrames(int animationId);
Fill the frame with random RGB values for all frames. Animation is referenced by name.
ChromaAnimationAPI.FillRandomColorsAllFramesName(string path);
FillRandomColorsAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.FillRandomColorsAllFramesNameD(string path);
Fill the frame with random black and white values for the specified frame. Animation is referenced by id.
ChromaAnimationAPI.FillRandomColorsBlackAndWhite(int animationId, int frameId);
FillRandomColorsBlackAndWhiteAllFrames
Fill the frame with random black and white values for all frames. Animation is referenced by id.
ChromaAnimationAPI.FillRandomColorsBlackAndWhiteAllFrames(int animationId);
FillRandomColorsBlackAndWhiteAllFramesName
Fill the frame with random black and white values for all frames. Animation is referenced by name.
ChromaAnimationAPI.FillRandomColorsBlackAndWhiteAllFramesName(string path);
FillRandomColorsBlackAndWhiteAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.FillRandomColorsBlackAndWhiteAllFramesNameD(string path);
FillRandomColorsBlackAndWhiteName
Fill the frame with random black and white values for the specified frame. Animation is referenced by name.
ChromaAnimationAPI.FillRandomColorsBlackAndWhiteName(string path, int frameId);
FillRandomColorsBlackAndWhiteNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.FillRandomColorsBlackAndWhiteNameD(string path, double frameId);
Fill the frame with random RGB values for the given frame. Animation is referenced by name.
ChromaAnimationAPI.FillRandomColorsName(string path, int frameId);
D suffix for limited data types.
double result = ChromaAnimationAPI.FillRandomColorsNameD(string path, double frameId);
Fill the specified frame with RGB color where the animation color is less than the RGB threshold. Animation is referenced by id.
ChromaAnimationAPI.FillThresholdColors(int animationId, int frameId, int threshold, int color);
Fill all frames with RGB color where the animation color is less than the RGB threshold. Animation is referenced by id.
ChromaAnimationAPI.FillThresholdColorsAllFrames(int animationId, int threshold, int color);
FillThresholdColorsAllFramesName
Fill all frames with RGB color where the animation color is less than the RGB threshold. Animation is referenced by name.
ChromaAnimationAPI.FillThresholdColorsAllFramesName(string path, int threshold, int color);
FillThresholdColorsAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.FillThresholdColorsAllFramesNameD(string path, double threshold, double color);
FillThresholdColorsAllFramesRGB
Fill all frames with RGB color where the animation color is less than the threshold. Animation is referenced by id.
ChromaAnimationAPI.FillThresholdColorsAllFramesRGB(int animationId, int threshold, int red, int green, int blue);
FillThresholdColorsAllFramesRGBName
Fill all frames with RGB color where the animation color is less than the threshold. Animation is referenced by name.
ChromaAnimationAPI.FillThresholdColorsAllFramesRGBName(string path, int threshold, int red, int green, int blue);
FillThresholdColorsAllFramesRGBNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.FillThresholdColorsAllFramesRGBNameD(string path, double threshold, double red, double green, double blue);
FillThresholdColorsMinMaxAllFramesRGB
Fill all frames with the min RGB color where the animation color is less than the min threshold AND with the max RGB color where the animation is more than the max threshold. Animation is referenced by id.
ChromaAnimationAPI.FillThresholdColorsMinMaxAllFramesRGB(int animationId, int minThreshold, int minRed, int minGreen, int minBlue, int maxThreshold, int maxRed, int maxGreen, int maxBlue);
FillThresholdColorsMinMaxAllFramesRGBName
Fill all frames with the min RGB color where the animation color is less than the min threshold AND with the max RGB color where the animation is more than the max threshold. Animation is referenced by name.
ChromaAnimationAPI.FillThresholdColorsMinMaxAllFramesRGBName(string path, int minThreshold, int minRed, int minGreen, int minBlue, int maxThreshold, int maxRed, int maxGreen, int maxBlue);
FillThresholdColorsMinMaxAllFramesRGBNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.FillThresholdColorsMinMaxAllFramesRGBNameD(string path, double minThreshold, double minRed, double minGreen, double minBlue, double maxThreshold, double maxRed, double maxGreen, double maxBlue);
Fill the specified frame with the min RGB color where the animation color is less than the min threshold AND with the max RGB color where the animation is more than the max threshold. Animation is referenced by id.
ChromaAnimationAPI.FillThresholdColorsMinMaxRGB(int animationId, int frameId, int minThreshold, int minRed, int minGreen, int minBlue, int maxThreshold, int maxRed, int maxGreen, int maxBlue);
FillThresholdColorsMinMaxRGBName
Fill the specified frame with the min RGB color where the animation color is less than the min threshold AND with the max RGB color where the animation is more than the max threshold. Animation is referenced by name.
ChromaAnimationAPI.FillThresholdColorsMinMaxRGBName(string path, int frameId, int minThreshold, int minRed, int minGreen, int minBlue, int maxThreshold, int maxRed, int maxGreen, int maxBlue);
FillThresholdColorsMinMaxRGBNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.FillThresholdColorsMinMaxRGBNameD(string path, double frameId, double minThreshold, double minRed, double minGreen, double minBlue, double maxThreshold, double maxRed, double maxGreen, double maxBlue);
Fill the specified frame with RGB color where the animation color is less than the RGB threshold. Animation is referenced by name.
ChromaAnimationAPI.FillThresholdColorsName(string path, int frameId, int threshold, int color);
D suffix for limited data types.
double result = ChromaAnimationAPI.FillThresholdColorsNameD(string path, double frameId, double threshold, double color);
Fill the specified frame with RGB color where the animation color is less than the RGB threshold. Animation is referenced by id.
ChromaAnimationAPI.FillThresholdColorsRGB(int animationId, int frameId, int threshold, int red, int green, int blue);
Fill the specified frame with RGB color where the animation color is less than the RGB threshold. Animation is referenced by name.
ChromaAnimationAPI.FillThresholdColorsRGBName(string path, int frameId, int threshold, int red, int green, int blue);
D suffix for limited data types.
double result = ChromaAnimationAPI.FillThresholdColorsRGBNameD(string path, double frameId, double threshold, double red, double green, double blue);
FillThresholdRGBColorsAllFramesRGB
Fill all frames with RGB color where the animation color is less than the RGB threshold. Animation is referenced by id.
ChromaAnimationAPI.FillThresholdRGBColorsAllFramesRGB(int animationId, int redThreshold, int greenThreshold, int blueThreshold, int red, int green, int blue);
FillThresholdRGBColorsAllFramesRGBName
Fill all frames with RGB color where the animation color is less than the RGB threshold. Animation is referenced by name.
ChromaAnimationAPI.FillThresholdRGBColorsAllFramesRGBName(string path, int redThreshold, int greenThreshold, int blueThreshold, int red, int green, int blue);
FillThresholdRGBColorsAllFramesRGBNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.FillThresholdRGBColorsAllFramesRGBNameD(string path, double redThreshold, double greenThreshold, double blueThreshold, double red, double green, double blue);
Fill the specified frame with RGB color where the animation color is less than the RGB threshold. Animation is referenced by id.
ChromaAnimationAPI.FillThresholdRGBColorsRGB(int animationId, int frameId, int redThreshold, int greenThreshold, int blueThreshold, int red, int green, int blue);
Fill the specified frame with RGB color where the animation color is less than the RGB threshold. Animation is referenced by name.
ChromaAnimationAPI.FillThresholdRGBColorsRGBName(string path, int frameId, int redThreshold, int greenThreshold, int blueThreshold, int red, int green, int blue);
FillThresholdRGBColorsRGBNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.FillThresholdRGBColorsRGBNameD(string path, double frameId, double redThreshold, double greenThreshold, double blueThreshold, double red, double green, double blue);
Fill the specified frame with RGB color where the animation color is zero. Animation is referenced by id.
ChromaAnimationAPI.FillZeroColor(int animationId, int frameId, int color);
Fill all frames with RGB color where the animation color is zero. Animation is referenced by id.
ChromaAnimationAPI.FillZeroColorAllFrames(int animationId, int color);
Fill all frames with RGB color where the animation color is zero. Animation is referenced by name.
ChromaAnimationAPI.FillZeroColorAllFramesName(string path, int color);
D suffix for limited data types.
double result = ChromaAnimationAPI.FillZeroColorAllFramesNameD(string path, double color);
Fill all frames with RGB color where the animation color is zero. Animation is referenced by id.
ChromaAnimationAPI.FillZeroColorAllFramesRGB(int animationId, int red, int green, int blue);
Fill all frames with RGB color where the animation color is zero. Animation is referenced by name.
ChromaAnimationAPI.FillZeroColorAllFramesRGBName(string path, int red, int green, int blue);
FillZeroColorAllFramesRGBNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.FillZeroColorAllFramesRGBNameD(string path, double red, double green, double blue);
Fill the specified frame with RGB color where the animation color is zero. Animation is referenced by name.
ChromaAnimationAPI.FillZeroColorName(string path, int frameId, int color);
D suffix for limited data types.
double result = ChromaAnimationAPI.FillZeroColorNameD(string path, double frameId, double color);
Fill the specified frame with RGB color where the animation color is zero. Animation is referenced by id.
ChromaAnimationAPI.FillZeroColorRGB(int animationId, int frameId, int red, int green, int blue);
Fill the specified frame with RGB color where the animation color is zero. Animation is referenced by name.
ChromaAnimationAPI.FillZeroColorRGBName(string path, int frameId, int red, int green, int blue);
D suffix for limited data types.
double result = ChromaAnimationAPI.FillZeroColorRGBNameD(string path, double frameId, double red, double green, double blue);
Get the animation color for a frame given the 1D
led
. The led
should
be greater than or equal to 0 and less than the MaxLeds
. Animation is
referenced by id.
int result = ChromaAnimationAPI.Get1DColor(int animationId, int frameId, int led);
Get the animation color for a frame given the 1D
led
. The led
should
be greater than or equal to 0 and less than the MaxLeds
. Animation is
referenced by name.
int result = ChromaAnimationAPI.Get1DColorName(string path, int frameId, int led);
D suffix for limited data types.
double result = ChromaAnimationAPI.Get1DColorNameD(string path, double frameId, double led);
Get the animation color for a frame given the 2D
row
and column
. The
row
should be greater than or equal to 0 and less than the MaxRow
.
The column
should be greater than or equal to 0 and less than the MaxColumn
.
Animation is referenced by id.
int result = ChromaAnimationAPI.Get2DColor(int animationId, int frameId, int row, int column);
Get the animation color for a frame given the 2D
row
and column
. The
row
should be greater than or equal to 0 and less than the MaxRow
.
The column
should be greater than or equal to 0 and less than the MaxColumn
.
Animation is referenced by name.
int result = ChromaAnimationAPI.Get2DColorName(string path, int frameId, int row, int column);
D suffix for limited data types.
double result = ChromaAnimationAPI.Get2DColorNameD(string path, double frameId, double row, double column);
Get the animation id for the named animation.
int result = ChromaAnimationAPI.GetAnimation(string name);
PluginGetAnimationCount
will return the number of loaded animations.
int result = ChromaAnimationAPI.GetAnimationCount();
D suffix for limited data types.
double result = ChromaAnimationAPI.GetAnimationD(string name);
PluginGetAnimationId
will return the animationId
given the index
of
the loaded animation. The index
is zero-based and less than the number
returned by PluginGetAnimationCount
. Use PluginGetAnimationName
to
get the name of the animation.
int result = ChromaAnimationAPI.GetAnimationId(int index);
PluginGetAnimationName
takes an animationId
and returns the name of
the animation of the .chroma
animation file. If a name is not available
then an empty string will be returned.
string result = ChromaAnimationAPI.GetAnimationName(int animationId);
Get the current frame of the animation referenced by id.
int result = ChromaAnimationAPI.GetCurrentFrame(int animationId);
Get the current frame of the animation referenced by name.
int result = ChromaAnimationAPI.GetCurrentFrameName(string path);
D suffix for limited data types.
double result = ChromaAnimationAPI.GetCurrentFrameNameD(string path);
Returns the EChromaSDKDevice1DEnum
or EChromaSDKDevice2DEnum
of a Chroma
animation respective to the deviceType
, as an integer upon success. Returns
negative one upon failure.
int result = ChromaAnimationAPI.GetDevice(int animationId);
Returns the EChromaSDKDevice1DEnum
or EChromaSDKDevice2DEnum
of a Chroma
animation respective to the deviceType
, as an integer upon success. Returns
negative one upon failure.
int result = ChromaAnimationAPI.GetDeviceName(string path);
D suffix for limited data types.
double result = ChromaAnimationAPI.GetDeviceNameD(string path);
Returns the EChromaSDKDeviceTypeEnum
of a Chroma
animation as an integer
upon success. Returns negative one upon failure.
int result = ChromaAnimationAPI.GetDeviceType(int animationId);
Returns the EChromaSDKDeviceTypeEnum
of a Chroma
animation as an integer
upon success. Returns negative one upon failure.
int result = ChromaAnimationAPI.GetDeviceTypeName(string path);
D suffix for limited data types.
double result = ChromaAnimationAPI.GetDeviceTypeNameD(string path);
Get the frame colors and duration (in seconds) for a Chroma
animation
referenced by id. The color
is expected to be an array of the expected
dimensions for the deviceType/device
. The length
parameter is the size
of the color
array. For EChromaSDKDevice1DEnum
the array size should
be MAX LEDS
. For EChromaSDKDevice2DEnum
the array size should be MAX ROW
times MAX COLUMN
. Keys are populated only for EChromaSDKDevice2DEnum::DE_Keyboard
and EChromaSDKDevice2DEnum::DE_KeyboardExtended. Keys will only use the
EChromaSDKDevice2DEnum::DE_Keyboard MAX_ROW
times MAX_COLUMN
keysLength.
Returns the animation id upon success. Returns negative one upon failure.
int result = ChromaAnimationAPI.GetFrame(int animationId, int frameId, out float duration, int[] colors, int length, int[] keys, int keysLength);
Returns the frame count of a Chroma
animation upon success. Returns negative
one upon failure.
int result = ChromaAnimationAPI.GetFrameCount(int animationId);
Returns the frame count of a Chroma
animation upon success. Returns negative
one upon failure.
int result = ChromaAnimationAPI.GetFrameCountName(string path);
D suffix for limited data types.
double result = ChromaAnimationAPI.GetFrameCountNameD(string path);
Returns the duration of an animation frame in seconds upon success. Returns zero upon failure.
float result = ChromaAnimationAPI.GetFrameDuration(int animationId, int frameId);
Returns the duration of an animation frame in seconds upon success. Returns zero upon failure.
float result = ChromaAnimationAPI.GetFrameDurationName(string path, int frameId);
Get the frame colors and duration (in seconds) for a Chroma
animation
referenced by name. The color
is expected to be an array of the expected
dimensions for the deviceType/device
. The length
parameter is the size
of the color
array. For EChromaSDKDevice1DEnum
the array size should
be MAX LEDS
. For EChromaSDKDevice2DEnum
the array size should be MAX ROW
times MAX COLUMN
. Keys are populated only for EChromaSDKDevice2DEnum::DE_Keyboard
and EChromaSDKDevice2DEnum::DE_KeyboardExtended. Keys will only use the
EChromaSDKDevice2DEnum::DE_Keyboard MAX_ROW
times MAX_COLUMN
keysLength.
Returns the animation id upon success. Returns negative one upon failure.
int result = ChromaAnimationAPI.GetFrameName(string path, int frameId, out float duration, int[] colors, int length, int[] keys, int keysLength);
Get the color of an animation key for the given frame referenced by id.
int result = ChromaAnimationAPI.GetKeyColor(int animationId, int frameId, int rzkey);
D suffix for limited data types.
double result = ChromaAnimationAPI.GetKeyColorD(string path, double frameId, double rzkey);
Get the color of an animation key for the given frame referenced by name.
int result = ChromaAnimationAPI.GetKeyColorName(string path, int frameId, int rzkey);
Returns RZRESULT_SUCCESS
if the plugin has been initialized successfully.
Returns RZRESULT_DLL_NOT_FOUND
if core Chroma library is not found. Returns
RZRESULT_DLL_INVALID_SIGNATURE
if core Chroma library has an invalid
signature.
int result = ChromaAnimationAPI.GetLibraryLoadedState();
D suffix for limited data types.
double result = ChromaAnimationAPI.GetLibraryLoadedStateD();
Returns the MAX COLUMN
given the EChromaSDKDevice2DEnum
device as an
integer upon success. Returns negative one upon failure.
int result = ChromaAnimationAPI.GetMaxColumn(Device2D device);
D suffix for limited data types.
double result = ChromaAnimationAPI.GetMaxColumnD(double device);
Returns the MAX LEDS given the EChromaSDKDevice1DEnum
device as an integer
upon success. Returns negative one upon failure.
int result = ChromaAnimationAPI.GetMaxLeds(Device1D device);
D suffix for limited data types.
double result = ChromaAnimationAPI.GetMaxLedsD(double device);
Returns the MAX ROW
given the EChromaSDKDevice2DEnum
device as an integer
upon success. Returns negative one upon failure.
int result = ChromaAnimationAPI.GetMaxRow(Device2D device);
D suffix for limited data types.
double result = ChromaAnimationAPI.GetMaxRowD(double device);
PluginGetPlayingAnimationCount
will return the number of playing animations.
int result = ChromaAnimationAPI.GetPlayingAnimationCount();
PluginGetPlayingAnimationId
will return the animationId
given the index
of the playing animation. The index
is zero-based and less than the number
returned by PluginGetPlayingAnimationCount
. Use PluginGetAnimationName
to get the name of the animation.
int result = ChromaAnimationAPI.GetPlayingAnimationId(int index);
Get the RGB color given red, green, and blue.
int result = ChromaAnimationAPI.GetRGB(int red, int green, int blue);
D suffix for limited data types.
double result = ChromaAnimationAPI.GetRGBD(double red, double green, double blue);
Returns the total duration of an animation in seconds upon success. Returns zero upon failure.
float result = ChromaAnimationAPI.GetTotalDuration(int animationId);
Returns the total duration of an animation in seconds upon success. Returns zero upon failure.
float result = ChromaAnimationAPI.GetTotalDurationName(string path);
Check if the animation has loop enabled referenced by id.
bool result = ChromaAnimationAPI.HasAnimationLoop(int animationId);
Check if the animation has loop enabled referenced by name.
bool result = ChromaAnimationAPI.HasAnimationLoopName(string path);
D suffix for limited data types.
double result = ChromaAnimationAPI.HasAnimationLoopNameD(string path);
Initialize the ChromaSDK. Zero indicates success, otherwise failure. Many API methods auto initialize the ChromaSDK if not already initialized.
int result = ChromaAnimationAPI.Init();
D suffix for limited data types.
double result = ChromaAnimationAPI.InitD();
Initialize the ChromaSDK. AppInfo populates the details in Synapse. Zero indicates success, otherwise failure. Many API methods auto initialize the ChromaSDK if not already initialized.
int result = ChromaAnimationAPI.InitSDK(ref ChromaSDK.APPINFOTYPE appInfo);
Insert an animation delay by duplicating the frame by the delay number of times. Animation is referenced by id.
ChromaAnimationAPI.InsertDelay(int animationId, int frameId, int delay);
Insert an animation delay by duplicating the frame by the delay number of times. Animation is referenced by name.
ChromaAnimationAPI.InsertDelayName(string path, int frameId, int delay);
D suffix for limited data types.
double result = ChromaAnimationAPI.InsertDelayNameD(string path, double frameId, double delay);
Duplicate the source frame index at the target frame index. Animation is referenced by id.
ChromaAnimationAPI.InsertFrame(int animationId, int sourceFrame, int targetFrame);
Duplicate the source frame index at the target frame index. Animation is referenced by name.
ChromaAnimationAPI.InsertFrameName(string path, int sourceFrame, int targetFrame);
D suffix for limited data types.
double result = ChromaAnimationAPI.InsertFrameNameD(string path, double sourceFrame, double targetFrame);
Invert all the colors at the specified frame. Animation is referenced by id.
ChromaAnimationAPI.InvertColors(int animationId, int frameId);
Invert all the colors for all frames. Animation is referenced by id.
ChromaAnimationAPI.InvertColorsAllFrames(int animationId);
Invert all the colors for all frames. Animation is referenced by name.
ChromaAnimationAPI.InvertColorsAllFramesName(string path);
D suffix for limited data types.
double result = ChromaAnimationAPI.InvertColorsAllFramesNameD(string path);
Invert all the colors at the specified frame. Animation is referenced by name.
ChromaAnimationAPI.InvertColorsName(string path, int frameId);
D suffix for limited data types.
double result = ChromaAnimationAPI.InvertColorsNameD(string path, double frameId);
Check if the animation is paused referenced by id.
bool result = ChromaAnimationAPI.IsAnimationPaused(int animationId);
Check if the animation is paused referenced by name.
bool result = ChromaAnimationAPI.IsAnimationPausedName(string path);
D suffix for limited data types.
double result = ChromaAnimationAPI.IsAnimationPausedNameD(string path);
The editor dialog is a non-blocking modal window, this method returns true if the modal window is open, otherwise false.
bool result = ChromaAnimationAPI.IsDialogOpen();
D suffix for limited data types.
double result = ChromaAnimationAPI.IsDialogOpenD();
Returns true if the plugin has been initialized. Returns false if the plugin is uninitialized.
bool result = ChromaAnimationAPI.IsInitialized();
D suffix for limited data types.
double result = ChromaAnimationAPI.IsInitializedD();
If the method can be invoked the method returns true.
bool result = ChromaAnimationAPI.IsPlatformSupported();
D suffix for limited data types.
double result = ChromaAnimationAPI.IsPlatformSupportedD();
PluginIsPlayingName
automatically handles initializing the ChromaSDK
.
The named .chroma
animation file will be automatically opened. The method
will return whether the animation is playing or not. Animation is referenced
by id.
bool result = ChromaAnimationAPI.IsPlaying(int animationId);
D suffix for limited data types.
double result = ChromaAnimationAPI.IsPlayingD(double animationId);
PluginIsPlayingName
automatically handles initializing the ChromaSDK
.
The named .chroma
animation file will be automatically opened. The method
will return whether the animation is playing or not. Animation is referenced
by name.
bool result = ChromaAnimationAPI.IsPlayingName(string path);
D suffix for limited data types.
double result = ChromaAnimationAPI.IsPlayingNameD(string path);
PluginIsPlayingType
automatically handles initializing the ChromaSDK
.
If any animation is playing for the deviceType
and device
combination,
the method will return true, otherwise false.
bool result = ChromaAnimationAPI.IsPlayingType(int deviceType, int device);
D suffix for limited data types.
double result = ChromaAnimationAPI.IsPlayingTypeD(double deviceType, double device);
Do a lerp math operation on a float.
float result = ChromaAnimationAPI.Lerp(float start, float end, float amt);
Lerp from one color to another given t in the range 0.0 to 1.0.
int result = ChromaAnimationAPI.LerpColor(int from, int to, float t);
Loads Chroma
effects so that the animation can be played immediately.
Returns the animation id upon success. Returns negative one upon failure.
int result = ChromaAnimationAPI.LoadAnimation(int animationId);
D suffix for limited data types.
double result = ChromaAnimationAPI.LoadAnimationD(double animationId);
Load the named animation.
ChromaAnimationAPI.LoadAnimationName(string path);
Load a composite set of animations.
ChromaAnimationAPI.LoadComposite(string name);
Make a blank animation for the length of the frame count. Frame duration defaults to the duration. The frame color defaults to color. Animation is referenced by id.
ChromaAnimationAPI.MakeBlankFrames(int animationId, int frameCount, float duration, int color);
Make a blank animation for the length of the frame count. Frame duration defaults to the duration. The frame color defaults to color. Animation is referenced by name.
ChromaAnimationAPI.MakeBlankFramesName(string path, int frameCount, float duration, int color);
D suffix for limited data types.
double result = ChromaAnimationAPI.MakeBlankFramesNameD(string path, double frameCount, double duration, double color);
Make a blank animation for the length of the frame count. Frame duration defaults to the duration. The frame color is random. Animation is referenced by id.
ChromaAnimationAPI.MakeBlankFramesRandom(int animationId, int frameCount, float duration);
MakeBlankFramesRandomBlackAndWhite
Make a blank animation for the length of the frame count. Frame duration defaults to the duration. The frame color is random black and white. Animation is referenced by id.
ChromaAnimationAPI.MakeBlankFramesRandomBlackAndWhite(int animationId, int frameCount, float duration);
MakeBlankFramesRandomBlackAndWhiteName
Make a blank animation for the length of the frame count. Frame duration defaults to the duration. The frame color is random black and white. Animation is referenced by name.
ChromaAnimationAPI.MakeBlankFramesRandomBlackAndWhiteName(string path, int frameCount, float duration);
MakeBlankFramesRandomBlackAndWhiteNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.MakeBlankFramesRandomBlackAndWhiteNameD(string path, double frameCount, double duration);
Make a blank animation for the length of the frame count. Frame duration defaults to the duration. The frame color is random. Animation is referenced by name.
ChromaAnimationAPI.MakeBlankFramesRandomName(string path, int frameCount, float duration);
D suffix for limited data types.
double result = ChromaAnimationAPI.MakeBlankFramesRandomNameD(string path, double frameCount, double duration);
Make a blank animation for the length of the frame count. Frame duration defaults to the duration. The frame color defaults to color. Animation is referenced by id.
ChromaAnimationAPI.MakeBlankFramesRGB(int animationId, int frameCount, float duration, int red, int green, int blue);
Make a blank animation for the length of the frame count. Frame duration defaults to the duration. The frame color defaults to color. Animation is referenced by name.
ChromaAnimationAPI.MakeBlankFramesRGBName(string path, int frameCount, float duration, int red, int green, int blue);
D suffix for limited data types.
double result = ChromaAnimationAPI.MakeBlankFramesRGBNameD(string path, double frameCount, double duration, double red, double green, double blue);
Flips the color grid horizontally for all Chroma
animation frames. Returns
the animation id upon success. Returns negative one upon failure.
int result = ChromaAnimationAPI.MirrorHorizontally(int animationId);
Flips the color grid vertically for all Chroma
animation frames. This
method has no effect for EChromaSDKDevice1DEnum
devices. Returns the
animation id upon success. Returns negative one upon failure.
int result = ChromaAnimationAPI.MirrorVertically(int animationId);
Multiply the color intensity with the lerp result from color 1 to color
2 using the frame index divided by the frame count for the t
parameter.
Animation is referenced in id.
ChromaAnimationAPI.MultiplyColorLerpAllFrames(int animationId, int color1, int color2);
MultiplyColorLerpAllFramesName
Multiply the color intensity with the lerp result from color 1 to color
2 using the frame index divided by the frame count for the t
parameter.
Animation is referenced in name.
ChromaAnimationAPI.MultiplyColorLerpAllFramesName(string path, int color1, int color2);
MultiplyColorLerpAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.MultiplyColorLerpAllFramesNameD(string path, double color1, double color2);
Multiply all the colors in the frame by the intensity value. The valid the intensity range is from 0.0 to 255.0. RGB components are multiplied equally. An intensity of 0.5 would half the color value. Black colors in the frame will not be affected by this method.
ChromaAnimationAPI.MultiplyIntensity(int animationId, int frameId, float intensity);
Multiply all the colors for all frames by the intensity value. The valid the intensity range is from 0.0 to 255.0. RGB components are multiplied equally. An intensity of 0.5 would half the color value. Black colors in the frame will not be affected by this method.
ChromaAnimationAPI.MultiplyIntensityAllFrames(int animationId, float intensity);
MultiplyIntensityAllFramesName
Multiply all the colors for all frames by the intensity value. The valid the intensity range is from 0.0 to 255.0. RGB components are multiplied equally. An intensity of 0.5 would half the color value. Black colors in the frame will not be affected by this method.
ChromaAnimationAPI.MultiplyIntensityAllFramesName(string path, float intensity);
MultiplyIntensityAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.MultiplyIntensityAllFramesNameD(string path, double intensity);
Multiply all frames by the RBG color intensity. Animation is referenced by id.
ChromaAnimationAPI.MultiplyIntensityAllFramesRGB(int animationId, int red, int green, int blue);
MultiplyIntensityAllFramesRGBName
Multiply all frames by the RBG color intensity. Animation is referenced by name.
ChromaAnimationAPI.MultiplyIntensityAllFramesRGBName(string path, int red, int green, int blue);
MultiplyIntensityAllFramesRGBNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.MultiplyIntensityAllFramesRGBNameD(string path, double red, double green, double blue);
Multiply the specific frame by the RBG color intensity. Animation is referenced by id.
ChromaAnimationAPI.MultiplyIntensityColor(int animationId, int frameId, int color);
MultiplyIntensityColorAllFrames
Multiply all frames by the RBG color intensity. Animation is referenced by id.
ChromaAnimationAPI.MultiplyIntensityColorAllFrames(int animationId, int color);
MultiplyIntensityColorAllFramesName
Multiply all frames by the RBG color intensity. Animation is referenced by name.
ChromaAnimationAPI.MultiplyIntensityColorAllFramesName(string path, int color);
MultiplyIntensityColorAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.MultiplyIntensityColorAllFramesNameD(string path, double color);
Multiply the specific frame by the RBG color intensity. Animation is referenced by name.
ChromaAnimationAPI.MultiplyIntensityColorName(string path, int frameId, int color);
D suffix for limited data types.
double result = ChromaAnimationAPI.MultiplyIntensityColorNameD(string path, double frameId, double color);
Multiply all the colors in the frame by the intensity value. The valid the intensity range is from 0.0 to 255.0. RGB components are multiplied equally. An intensity of 0.5 would half the color value. Black colors in the frame will not be affected by this method.
ChromaAnimationAPI.MultiplyIntensityName(string path, int frameId, float intensity);
D suffix for limited data types.
double result = ChromaAnimationAPI.MultiplyIntensityNameD(string path, double frameId, double intensity);
Multiply the specific frame by the RBG color intensity. Animation is referenced by id.
ChromaAnimationAPI.MultiplyIntensityRGB(int animationId, int frameId, int red, int green, int blue);
Multiply the specific frame by the RBG color intensity. Animation is referenced by name.
ChromaAnimationAPI.MultiplyIntensityRGBName(string path, int frameId, int red, int green, int blue);
D suffix for limited data types.
double result = ChromaAnimationAPI.MultiplyIntensityRGBNameD(string path, double frameId, double red, double green, double blue);
MultiplyNonZeroTargetColorLerp
Multiply the specific frame by the color lerp result between color 1 and
2 using the frame color value as the t
value. Animation is referenced
by id.
ChromaAnimationAPI.MultiplyNonZeroTargetColorLerp(int animationId, int frameId, int color1, int color2);
MultiplyNonZeroTargetColorLerpAllFrames
Multiply all frames by the color lerp result between color 1 and 2 using
the frame color value as the t
value. Animation is referenced by id.
ChromaAnimationAPI.MultiplyNonZeroTargetColorLerpAllFrames(int animationId, int color1, int color2);
MultiplyNonZeroTargetColorLerpAllFramesName
Multiply all frames by the color lerp result between color 1 and 2 using
the frame color value as the t
value. Animation is referenced by name.
ChromaAnimationAPI.MultiplyNonZeroTargetColorLerpAllFramesName(string path, int color1, int color2);
MultiplyNonZeroTargetColorLerpAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.MultiplyNonZeroTargetColorLerpAllFramesNameD(string path, double color1, double color2);
MultiplyNonZeroTargetColorLerpAllFramesRGB
Multiply the specific frame by the color lerp result between RGB 1 and 2
using the frame color value as the t
value. Animation is referenced by
id.
ChromaAnimationAPI.MultiplyNonZeroTargetColorLerpAllFramesRGB(int animationId, int red1, int green1, int blue1, int red2, int green2, int blue2);
MultiplyNonZeroTargetColorLerpAllFramesRGBName
Multiply the specific frame by the color lerp result between RGB 1 and 2
using the frame color value as the t
value. Animation is referenced by
name.
ChromaAnimationAPI.MultiplyNonZeroTargetColorLerpAllFramesRGBName(string path, int red1, int green1, int blue1, int red2, int green2, int blue2);
MultiplyNonZeroTargetColorLerpAllFramesRGBNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.MultiplyNonZeroTargetColorLerpAllFramesRGBNameD(string path, double red1, double green1, double blue1, double red2, double green2, double blue2);
Multiply the specific frame by the color lerp result between color 1 and
2 using the frame color value as the t
value. Animation is referenced
by id.
ChromaAnimationAPI.MultiplyTargetColorLerp(int animationId, int frameId, int color1, int color2);
MultiplyTargetColorLerpAllFrames
Multiply all frames by the color lerp result between color 1 and 2 using
the frame color value as the t
value. Animation is referenced by id.
ChromaAnimationAPI.MultiplyTargetColorLerpAllFrames(int animationId, int color1, int color2);
MultiplyTargetColorLerpAllFramesName
Multiply all frames by the color lerp result between color 1 and 2 using
the frame color value as the t
value. Animation is referenced by name.
ChromaAnimationAPI.MultiplyTargetColorLerpAllFramesName(string path, int color1, int color2);
MultiplyTargetColorLerpAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.MultiplyTargetColorLerpAllFramesNameD(string path, double color1, double color2);
MultiplyTargetColorLerpAllFramesRGB
Multiply all frames by the color lerp result between RGB 1 and 2 using the
frame color value as the t
value. Animation is referenced by id.
ChromaAnimationAPI.MultiplyTargetColorLerpAllFramesRGB(int animationId, int red1, int green1, int blue1, int red2, int green2, int blue2);
MultiplyTargetColorLerpAllFramesRGBName
Multiply all frames by the color lerp result between RGB 1 and 2 using the
frame color value as the t
value. Animation is referenced by name.
ChromaAnimationAPI.MultiplyTargetColorLerpAllFramesRGBName(string path, int red1, int green1, int blue1, int red2, int green2, int blue2);
MultiplyTargetColorLerpAllFramesRGBNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.MultiplyTargetColorLerpAllFramesRGBNameD(string path, double red1, double green1, double blue1, double red2, double green2, double blue2);
Multiply the specific frame by the color lerp result between color 1 and
2 using the frame color value as the t
value. Animation is referenced
by name.
ChromaAnimationAPI.MultiplyTargetColorLerpName(string path, int frameId, int color1, int color2);
Offset all colors in the frame using the RGB offset. Use the range of -255 to 255 for red, green, and blue parameters. Negative values remove color. Positive values add color.
ChromaAnimationAPI.OffsetColors(int animationId, int frameId, int red, int green, int blue);
Offset all colors for all frames using the RGB offset. Use the range of -255 to 255 for red, green, and blue parameters. Negative values remove color. Positive values add color.
ChromaAnimationAPI.OffsetColorsAllFrames(int animationId, int red, int green, int blue);
Offset all colors for all frames using the RGB offset. Use the range of -255 to 255 for red, green, and blue parameters. Negative values remove color. Positive values add color.
ChromaAnimationAPI.OffsetColorsAllFramesName(string path, int red, int green, int blue);
D suffix for limited data types.
double result = ChromaAnimationAPI.OffsetColorsAllFramesNameD(string path, double red, double green, double blue);
Offset all colors in the frame using the RGB offset. Use the range of -255 to 255 for red, green, and blue parameters. Negative values remove color. Positive values add color.
ChromaAnimationAPI.OffsetColorsName(string path, int frameId, int red, int green, int blue);
D suffix for limited data types.
double result = ChromaAnimationAPI.OffsetColorsNameD(string path, double frameId, double red, double green, double blue);
This method will only update colors in the animation that are not already set to black. Offset a subset of colors in the frame using the RGB offset. Use the range of -255 to 255 for red, green, and blue parameters. Negative values remove color. Positive values add color.
ChromaAnimationAPI.OffsetNonZeroColors(int animationId, int frameId, int red, int green, int blue);
This method will only update colors in the animation that are not already set to black. Offset a subset of colors for all frames using the RGB offset. Use the range of -255 to 255 for red, green, and blue parameters. Negative values remove color. Positive values add color.
ChromaAnimationAPI.OffsetNonZeroColorsAllFrames(int animationId, int red, int green, int blue);
OffsetNonZeroColorsAllFramesName
This method will only update colors in the animation that are not already set to black. Offset a subset of colors for all frames using the RGB offset. Use the range of -255 to 255 for red, green, and blue parameters. Negative values remove color. Positive values add color.
ChromaAnimationAPI.OffsetNonZeroColorsAllFramesName(string path, int red, int green, int blue);
OffsetNonZeroColorsAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.OffsetNonZeroColorsAllFramesNameD(string path, double red, double green, double blue);
This method will only update colors in the animation that are not already set to black. Offset a subset of colors in the frame using the RGB offset. Use the range of -255 to 255 for red, green, and blue parameters. Negative values remove color. Positive values add color.
ChromaAnimationAPI.OffsetNonZeroColorsName(string path, int frameId, int red, int green, int blue);
D suffix for limited data types.
double result = ChromaAnimationAPI.OffsetNonZeroColorsNameD(string path, double frameId, double red, double green, double blue);
Opens a Chroma
animation file so that it can be played. Returns an animation
id >= 0 upon success. Returns negative one if there was a failure. The
animation id is used in most of the API methods.
int result = ChromaAnimationAPI.OpenAnimation(string path);
D suffix for limited data types.
double result = ChromaAnimationAPI.OpenAnimationD(string path);
Opens a Chroma
animation data from memory so that it can be played. Data
is a pointer to BYTE array of the loaded animation in memory. Name
will
be assigned to the animation when loaded. Returns an animation id >= 0
upon success. Returns negative one if there was a failure. The animation
id is used in most of the API methods.
int result = ChromaAnimationAPI.OpenAnimationFromMemory(byte[] data, string name);
Opens a Chroma
animation file with the .chroma
extension. Returns zero
upon success. Returns negative one if there was a failure.
int result = ChromaAnimationAPI.OpenEditorDialog(string path);
Open the named animation in the editor dialog and play the animation at start.
int result = ChromaAnimationAPI.OpenEditorDialogAndPlay(string path);
D suffix for limited data types.
double result = ChromaAnimationAPI.OpenEditorDialogAndPlayD(string path);
D suffix for limited data types.
double result = ChromaAnimationAPI.OpenEditorDialogD(string path);
Sets the duration
for all grames in the Chroma
animation to the duration
parameter. Returns the animation id upon success. Returns negative one
upon failure.
int result = ChromaAnimationAPI.OverrideFrameDuration(int animationId, float duration);
D suffix for limited data types.
double result = ChromaAnimationAPI.OverrideFrameDurationD(double animationId, double duration);
Override the duration of all frames with the duration
value. Animation
is referenced by name.
ChromaAnimationAPI.OverrideFrameDurationName(string path, float duration);
Pause the current animation referenced by id.
ChromaAnimationAPI.PauseAnimation(int animationId);
Pause the current animation referenced by name.
ChromaAnimationAPI.PauseAnimationName(string path);
D suffix for limited data types.
double result = ChromaAnimationAPI.PauseAnimationNameD(string path);
Plays the Chroma
animation. This will load the animation, if not loaded
previously. Returns the animation id upon success. Returns negative one
upon failure.
int result = ChromaAnimationAPI.PlayAnimation(int animationId);
D suffix for limited data types.
double result = ChromaAnimationAPI.PlayAnimationD(double animationId);
PluginPlayAnimationFrame
automatically handles initializing the ChromaSDK
.
The method will play the animation given the animationId
with looping
on
or off
starting at the frameId
.
ChromaAnimationAPI.PlayAnimationFrame(int animationId, int frameId, bool loop);
PluginPlayAnimationFrameName
automatically handles initializing the ChromaSDK
.
The named .chroma
animation file will be automatically opened. The animation
will play with looping on
or off
starting at the frameId
.
ChromaAnimationAPI.PlayAnimationFrameName(string path, int frameId, bool loop);
D suffix for limited data types.
double result = ChromaAnimationAPI.PlayAnimationFrameNameD(string path, double frameId, double loop);
PluginPlayAnimationLoop
automatically handles initializing the ChromaSDK
.
The method will play the animation given the animationId
with looping
on
or off
.
ChromaAnimationAPI.PlayAnimationLoop(int animationId, bool loop);
PluginPlayAnimationName
automatically handles initializing the ChromaSDK
.
The named .chroma
animation file will be automatically opened. The animation
will play with looping on
or off
.
ChromaAnimationAPI.PlayAnimationName(string path, bool loop);
D suffix for limited data types.
double result = ChromaAnimationAPI.PlayAnimationNameD(string path, double loop);
PluginPlayComposite
automatically handles initializing the ChromaSDK
.
The named animation files for the .chroma
set will be automatically opened.
The set of animations will play with looping on
or off
.
ChromaAnimationAPI.PlayComposite(string name, bool loop);
D suffix for limited data types.
double result = ChromaAnimationAPI.PlayCompositeD(string name, double loop);
Displays the Chroma
animation frame on Chroma
hardware given the frameId
.
Returns the animation id upon success. Returns negative one upon failure.
int result = ChromaAnimationAPI.PreviewFrame(int animationId, int frameId);
D suffix for limited data types.
double result = ChromaAnimationAPI.PreviewFrameD(double animationId, double frameId);
Displays the Chroma
animation frame on Chroma
hardware given the frameId
.
Animaton is referenced by name.
ChromaAnimationAPI.PreviewFrameName(string path, int frameId);
Reduce the frames of the animation by removing every nth element. Animation is referenced by id.
ChromaAnimationAPI.ReduceFrames(int animationId, int n);
Reduce the frames of the animation by removing every nth element. Animation is referenced by name.
ChromaAnimationAPI.ReduceFramesName(string path, int n);
D suffix for limited data types.
double result = ChromaAnimationAPI.ReduceFramesNameD(string path, double n);
Resets the Chroma
animation to 1 blank frame. Returns the animation id
upon success. Returns negative one upon failure.
int result = ChromaAnimationAPI.ResetAnimation(int animationId);
Resume the animation with loop ON
or OFF
referenced by id.
ChromaAnimationAPI.ResumeAnimation(int animationId, bool loop);
Resume the animation with loop ON
or OFF
referenced by name.
ChromaAnimationAPI.ResumeAnimationName(string path, bool loop);
D suffix for limited data types.
double result = ChromaAnimationAPI.ResumeAnimationNameD(string path, double loop);
Reverse the animation frame order of the Chroma
animation. Returns the
animation id upon success. Returns negative one upon failure. Animation
is referenced by id.
int result = ChromaAnimationAPI.Reverse(int animationId);
Reverse the animation frame order of the Chroma
animation. Animation is
referenced by id.
ChromaAnimationAPI.ReverseAllFrames(int animationId);
Reverse the animation frame order of the Chroma
animation. Animation is
referenced by name.
ChromaAnimationAPI.ReverseAllFramesName(string path);
D suffix for limited data types.
double result = ChromaAnimationAPI.ReverseAllFramesNameD(string path);
Save the animation referenced by id to the path specified.
int result = ChromaAnimationAPI.SaveAnimation(int animationId, string path);
Save the named animation to the target path specified.
int result = ChromaAnimationAPI.SaveAnimationName(string sourceAnimation, string targetAnimation);
Set the animation color for a frame given the 1D
led
. The led
should
be greater than or equal to 0 and less than the MaxLeds
. The animation
is referenced by id.
ChromaAnimationAPI.Set1DColor(int animationId, int frameId, int led, int color);
Set the animation color for a frame given the 1D
led
. The led
should
be greater than or equal to 0 and less than the MaxLeds
. The animation
is referenced by name.
ChromaAnimationAPI.Set1DColorName(string path, int frameId, int led, int color);
D suffix for limited data types.
double result = ChromaAnimationAPI.Set1DColorNameD(string path, double frameId, double led, double color);
Set the animation color for a frame given the 2D
row
and column
. The
row
should be greater than or equal to 0 and less than the MaxRow
.
The column
should be greater than or equal to 0 and less than the MaxColumn
.
The animation is referenced by id.
ChromaAnimationAPI.Set2DColor(int animationId, int frameId, int row, int column, int color);
Set the animation color for a frame given the 2D
row
and column
. The
row
should be greater than or equal to 0 and less than the MaxRow
.
The column
should be greater than or equal to 0 and less than the MaxColumn
.
The animation is referenced by name.
ChromaAnimationAPI.Set2DColorName(string path, int frameId, int row, int column, int color);
D suffix for limited data types.
double result = ChromaAnimationAPI.Set2DColorNameD(string path, double frameId, double rowColumnIndex, double color);
When custom color is set, the custom key mode will be used. The animation is referenced by id.
ChromaAnimationAPI.SetChromaCustomColorAllFrames(int animationId);
SetChromaCustomColorAllFramesName
When custom color is set, the custom key mode will be used. The animation is referenced by name.
ChromaAnimationAPI.SetChromaCustomColorAllFramesName(string path);
SetChromaCustomColorAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.SetChromaCustomColorAllFramesNameD(string path);
Set the Chroma custom key color flag on all frames. True
changes the layout
from grid to key. True
changes the layout from key to grid. Animation
is referenced by id.
ChromaAnimationAPI.SetChromaCustomFlag(int animationId, bool flag);
Set the Chroma custom key color flag on all frames. True
changes the layout
from grid to key. True
changes the layout from key to grid. Animation
is referenced by name.
ChromaAnimationAPI.SetChromaCustomFlagName(string path, bool flag);
D suffix for limited data types.
double result = ChromaAnimationAPI.SetChromaCustomFlagNameD(string path, double flag);
Set the current frame of the animation referenced by id.
ChromaAnimationAPI.SetCurrentFrame(int animationId, int frameId);
Set the current frame of the animation referenced by name.
ChromaAnimationAPI.SetCurrentFrameName(string path, int frameId);
D suffix for limited data types.
double result = ChromaAnimationAPI.SetCurrentFrameNameD(string path, double frameId);
Set the custom alpha flag on the color array
int result = ChromaAnimationAPI.SetCustomColorFlag2D(int device, int[] colors);
Changes the deviceType
and device
of a Chroma
animation. If the device
is changed, the Chroma
animation will be reset with 1 blank frame. Returns
the animation id upon success. Returns negative one upon failure.
int result = ChromaAnimationAPI.SetDevice(int animationId, int deviceType, int device);
SetEffect will display the referenced effect id.
int result = ChromaAnimationAPI.SetEffect(Guid effectId);
SetEffectCustom1D will display the referenced colors immediately
int result = ChromaAnimationAPI.SetEffectCustom1D(int device, int[] colors);
SetEffectCustom2D will display the referenced colors immediately.
int result = ChromaAnimationAPI.SetEffectCustom2D(int device, int[] colors);
SetEffectKeyboardCustom2D will display the referenced custom keyboard colors immediately. Colors represent a visual grid layout. Keys represent the hotkeys for any layout.
int result = ChromaAnimationAPI.SetEffectKeyboardCustom2D(int device, int[] colors, int[] keys);
When the idle animation is used, the named animation will play when no other animations are playing. Reference the animation by id.
ChromaAnimationAPI.SetIdleAnimation(int animationId);
When the idle animation is used, the named animation will play when no other animations are playing. Reference the animation by name.
ChromaAnimationAPI.SetIdleAnimationName(string path);
Set animation key to a static color for the given frame.
ChromaAnimationAPI.SetKeyColor(int animationId, int frameId, int rzkey, int color);
Set the key to the specified key color for all frames. Animation is referenced by id.
ChromaAnimationAPI.SetKeyColorAllFrames(int animationId, int rzkey, int color);
Set the key to the specified key color for all frames. Animation is referenced by name.
ChromaAnimationAPI.SetKeyColorAllFramesName(string path, int rzkey, int color);
D suffix for limited data types.
double result = ChromaAnimationAPI.SetKeyColorAllFramesNameD(string path, double rzkey, double color);
Set the key to the specified key color for all frames. Animation is referenced by id.
ChromaAnimationAPI.SetKeyColorAllFramesRGB(int animationId, int rzkey, int red, int green, int blue);
Set the key to the specified key color for all frames. Animation is referenced by name.
ChromaAnimationAPI.SetKeyColorAllFramesRGBName(string path, int rzkey, int red, int green, int blue);
D suffix for limited data types.
double result = ChromaAnimationAPI.SetKeyColorAllFramesRGBNameD(string path, double rzkey, double red, double green, double blue);
Set animation key to a static color for the given frame.
ChromaAnimationAPI.SetKeyColorName(string path, int frameId, int rzkey, int color);
D suffix for limited data types.
double result = ChromaAnimationAPI.SetKeyColorNameD(string path, double frameId, double rzkey, double color);
Set the key to the specified key color for the specified frame. Animation is referenced by id.
ChromaAnimationAPI.SetKeyColorRGB(int animationId, int frameId, int rzkey, int red, int green, int blue);
Set the key to the specified key color for the specified frame. Animation is referenced by name.
ChromaAnimationAPI.SetKeyColorRGBName(string path, int frameId, int rzkey, int red, int green, int blue);
D suffix for limited data types.
double result = ChromaAnimationAPI.SetKeyColorRGBNameD(string path, double frameId, double rzkey, double red, double green, double blue);
Set animation key to a static color for the given frame if the existing color is not already black.
ChromaAnimationAPI.SetKeyNonZeroColor(int animationId, int frameId, int rzkey, int color);
Set animation key to a static color for the given frame if the existing color is not already black.
ChromaAnimationAPI.SetKeyNonZeroColorName(string path, int frameId, int rzkey, int color);
D suffix for limited data types.
double result = ChromaAnimationAPI.SetKeyNonZeroColorNameD(string path, double frameId, double rzkey, double color);
Set the key to the specified key color for the specified frame where color is not black. Animation is referenced by id.
ChromaAnimationAPI.SetKeyNonZeroColorRGB(int animationId, int frameId, int rzkey, int red, int green, int blue);
Set the key to the specified key color for the specified frame where color is not black. Animation is referenced by name.
ChromaAnimationAPI.SetKeyNonZeroColorRGBName(string path, int frameId, int rzkey, int red, int green, int blue);
D suffix for limited data types.
double result = ChromaAnimationAPI.SetKeyNonZeroColorRGBNameD(string path, double frameId, double rzkey, double red, double green, double blue);
Set animation key by row and column to a static color for the given frame.
ChromaAnimationAPI.SetKeyRowColumnColorName(string path, int frameId, int row, int column, int color);
Set an array of animation keys to a static color for the given frame. Animation is referenced by id.
ChromaAnimationAPI.SetKeysColor(int animationId, int frameId, int[] rzkeys, int keyCount, int color);
Set an array of animation keys to a static color for all frames. Animation is referenced by id.
ChromaAnimationAPI.SetKeysColorAllFrames(int animationId, int[] rzkeys, int keyCount, int color);
Set an array of animation keys to a static color for all frames. Animation is referenced by name.
ChromaAnimationAPI.SetKeysColorAllFramesName(string path, int[] rzkeys, int keyCount, int color);
Set an array of animation keys to a static color for all frames. Animation is referenced by id.
ChromaAnimationAPI.SetKeysColorAllFramesRGB(int animationId, int[] rzkeys, int keyCount, int red, int green, int blue);
Set an array of animation keys to a static color for all frames. Animation is referenced by name.
ChromaAnimationAPI.SetKeysColorAllFramesRGBName(string path, int[] rzkeys, int keyCount, int red, int green, int blue);
Set an array of animation keys to a static color for the given frame.
ChromaAnimationAPI.SetKeysColorName(string path, int frameId, int[] rzkeys, int keyCount, int color);
Set an array of animation keys to a static color for the given frame. Animation is referenced by id.
ChromaAnimationAPI.SetKeysColorRGB(int animationId, int frameId, int[] rzkeys, int keyCount, int red, int green, int blue);
Set an array of animation keys to a static color for the given frame. Animation is referenced by name.
ChromaAnimationAPI.SetKeysColorRGBName(string path, int frameId, int[] rzkeys, int keyCount, int red, int green, int blue);
Set an array of animation keys to a static color for the given frame if the existing color is not already black.
ChromaAnimationAPI.SetKeysNonZeroColor(int animationId, int frameId, int[] rzkeys, int keyCount, int color);
Set an array of animation keys to a static color for the given frame where the color is not black. Animation is referenced by id.
ChromaAnimationAPI.SetKeysNonZeroColorAllFrames(int animationId, int[] rzkeys, int keyCount, int color);
SetKeysNonZeroColorAllFramesName
Set an array of animation keys to a static color for all frames if the existing color is not already black. Reference animation by name.
ChromaAnimationAPI.SetKeysNonZeroColorAllFramesName(string path, int[] rzkeys, int keyCount, int color);
Set an array of animation keys to a static color for the given frame if the existing color is not already black. Reference animation by name.
ChromaAnimationAPI.SetKeysNonZeroColorName(string path, int frameId, int[] rzkeys, int keyCount, int color);
Set an array of animation keys to a static color for the given frame where the color is not black. Animation is referenced by id.
ChromaAnimationAPI.SetKeysNonZeroColorRGB(int animationId, int frameId, int[] rzkeys, int keyCount, int red, int green, int blue);
Set an array of animation keys to a static color for the given frame where the color is not black. Animation is referenced by name.
ChromaAnimationAPI.SetKeysNonZeroColorRGBName(string path, int frameId, int[] rzkeys, int keyCount, int red, int green, int blue);
Set an array of animation keys to a static color for the given frame where the color is black. Animation is referenced by id.
ChromaAnimationAPI.SetKeysZeroColor(int animationId, int frameId, int[] rzkeys, int keyCount, int color);
Set an array of animation keys to a static color for all frames where the color is black. Animation is referenced by id.
ChromaAnimationAPI.SetKeysZeroColorAllFrames(int animationId, int[] rzkeys, int keyCount, int color);
Set an array of animation keys to a static color for all frames where the color is black. Animation is referenced by name.
ChromaAnimationAPI.SetKeysZeroColorAllFramesName(string path, int[] rzkeys, int keyCount, int color);
Set an array of animation keys to a static color for all frames where the color is black. Animation is referenced by id.
ChromaAnimationAPI.SetKeysZeroColorAllFramesRGB(int animationId, int[] rzkeys, int keyCount, int red, int green, int blue);
SetKeysZeroColorAllFramesRGBName
Set an array of animation keys to a static color for all frames where the color is black. Animation is referenced by name.
ChromaAnimationAPI.SetKeysZeroColorAllFramesRGBName(string path, int[] rzkeys, int keyCount, int red, int green, int blue);
Set an array of animation keys to a static color for the given frame where the color is black. Animation is referenced by name.
ChromaAnimationAPI.SetKeysZeroColorName(string path, int frameId, int[] rzkeys, int keyCount, int color);
Set an array of animation keys to a static color for the given frame where the color is black. Animation is referenced by id.
ChromaAnimationAPI.SetKeysZeroColorRGB(int animationId, int frameId, int[] rzkeys, int keyCount, int red, int green, int blue);
Set an array of animation keys to a static color for the given frame where the color is black. Animation is referenced by name.
ChromaAnimationAPI.SetKeysZeroColorRGBName(string path, int frameId, int[] rzkeys, int keyCount, int red, int green, int blue);
Set animation key to a static color for the given frame where the color is black. Animation is referenced by id.
ChromaAnimationAPI.SetKeyZeroColor(int animationId, int frameId, int rzkey, int color);
Set animation key to a static color for the given frame where the color is black. Animation is referenced by name.
ChromaAnimationAPI.SetKeyZeroColorName(string path, int frameId, int rzkey, int color);
D suffix for limited data types.
double result = ChromaAnimationAPI.SetKeyZeroColorNameD(string path, double frameId, double rzkey, double color);
Set animation key to a static color for the given frame where the color is black. Animation is referenced by id.
ChromaAnimationAPI.SetKeyZeroColorRGB(int animationId, int frameId, int rzkey, int red, int green, int blue);
Set animation key to a static color for the given frame where the color is black. Animation is referenced by name.
ChromaAnimationAPI.SetKeyZeroColorRGBName(string path, int frameId, int rzkey, int red, int green, int blue);
D suffix for limited data types.
double result = ChromaAnimationAPI.SetKeyZeroColorRGBNameD(string path, double frameId, double rzkey, double red, double green, double blue);
Invokes the setup for a debug logging callback so that stdout
is redirected
to the callback. This is used by Unity
so that debug messages can appear
in the console window.
ChromaAnimationAPI.SetLogDelegate(IntPtr fp);
Sets the target device to the static color.
ChromaAnimationAPI.SetStaticColor(int deviceType, int device, int color);
Sets all devices to the static color.
ChromaAnimationAPI.SetStaticColorAll(int color);
Sets the target device to the static color.
ChromaAnimationAPI.StaticColor(int deviceType, int device, int color);
Sets all devices to the static color.
ChromaAnimationAPI.StaticColorAll(int color);
D suffix for limited data types.
double result = ChromaAnimationAPI.StaticColorD(double deviceType, double device, double color);
PluginStopAll
will automatically stop all animations that are playing.
ChromaAnimationAPI.StopAll();
Stops animation playback if in progress. Returns the animation id upon success. Returns negative one upon failure.
int result = ChromaAnimationAPI.StopAnimation(int animationId);
D suffix for limited data types.
double result = ChromaAnimationAPI.StopAnimationD(double animationId);
PluginStopAnimationName
automatically handles initializing the ChromaSDK
.
The named .chroma
animation file will be automatically opened. The animation
will stop if playing.
ChromaAnimationAPI.StopAnimationName(string path);
D suffix for limited data types.
double result = ChromaAnimationAPI.StopAnimationNameD(string path);
PluginStopAnimationType
automatically handles initializing the ChromaSDK
.
If any animation is playing for the deviceType
and device
combination,
it will be stopped.
ChromaAnimationAPI.StopAnimationType(int deviceType, int device);
D suffix for limited data types.
double result = ChromaAnimationAPI.StopAnimationTypeD(double deviceType, double device);
PluginStopComposite
automatically handles initializing the ChromaSDK
.
The named animation files for the .chroma
set will be automatically opened.
The set of animations will be stopped if playing.
ChromaAnimationAPI.StopComposite(string name);
D suffix for limited data types.
double result = ChromaAnimationAPI.StopCompositeD(string name);
Return color1 - color2
int result = ChromaAnimationAPI.SubtractColor(int color1, int color2);
Subtract the source color from the target color for the frame where the target color is not black. Source and target are referenced by id.
ChromaAnimationAPI.SubtractNonZeroAllKeys(int sourceAnimationId, int targetAnimationId, int frameId);
SubtractNonZeroAllKeysAllFrames
Subtract the source color from the target color for all frames where the target color is not black. Source and target are referenced by id.
ChromaAnimationAPI.SubtractNonZeroAllKeysAllFrames(int sourceAnimationId, int targetAnimationId);
SubtractNonZeroAllKeysAllFramesName
Subtract the source color from the target color for all frames where the target color is not black. Source and target are referenced by name.
ChromaAnimationAPI.SubtractNonZeroAllKeysAllFramesName(string sourceAnimation, string targetAnimation);
SubtractNonZeroAllKeysAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.SubtractNonZeroAllKeysAllFramesNameD(string sourceAnimation, string targetAnimation);
SubtractNonZeroAllKeysAllFramesOffset
Subtract the source color from the target color for all frames where the target color is not black starting at offset for the length of the source. Source and target are referenced by id.
ChromaAnimationAPI.SubtractNonZeroAllKeysAllFramesOffset(int sourceAnimationId, int targetAnimationId, int offset);
SubtractNonZeroAllKeysAllFramesOffsetName
Subtract the source color from the target color for all frames where the target color is not black starting at offset for the length of the source. Source and target are referenced by name.
ChromaAnimationAPI.SubtractNonZeroAllKeysAllFramesOffsetName(string sourceAnimation, string targetAnimation, int offset);
SubtractNonZeroAllKeysAllFramesOffsetNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.SubtractNonZeroAllKeysAllFramesOffsetNameD(string sourceAnimation, string targetAnimation, double offset);
Subtract the source color from the target color for the frame where the target color is not black. Source and target are referenced by name.
ChromaAnimationAPI.SubtractNonZeroAllKeysName(string sourceAnimation, string targetAnimation, int frameId);
Subtract the source color from the target where color is not black for the source frame and target offset frame, reference source and target by id.
ChromaAnimationAPI.SubtractNonZeroAllKeysOffset(int sourceAnimationId, int targetAnimationId, int frameId, int offset);
SubtractNonZeroAllKeysOffsetName
Subtract the source color from the target where color is not black for the source frame and target offset frame, reference source and target by name.
ChromaAnimationAPI.SubtractNonZeroAllKeysOffsetName(string sourceAnimation, string targetAnimation, int frameId, int offset);
SubtractNonZeroAllKeysOffsetNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.SubtractNonZeroAllKeysOffsetNameD(string sourceAnimation, string targetAnimation, double frameId, double offset);
SubtractNonZeroTargetAllKeysAllFrames
Subtract the source color from the target color where the target color is not black for all frames. Reference source and target by id.
ChromaAnimationAPI.SubtractNonZeroTargetAllKeysAllFrames(int sourceAnimationId, int targetAnimationId);
SubtractNonZeroTargetAllKeysAllFramesName
Subtract the source color from the target color where the target color is not black for all frames. Reference source and target by name.
ChromaAnimationAPI.SubtractNonZeroTargetAllKeysAllFramesName(string sourceAnimation, string targetAnimation);
SubtractNonZeroTargetAllKeysAllFramesNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.SubtractNonZeroTargetAllKeysAllFramesNameD(string sourceAnimation, string targetAnimation);
SubtractNonZeroTargetAllKeysAllFramesOffset
Subtract the source color from the target color where the target color is not black for all frames starting at the target offset for the length of the source. Reference source and target by id.
ChromaAnimationAPI.SubtractNonZeroTargetAllKeysAllFramesOffset(int sourceAnimationId, int targetAnimationId, int offset);
SubtractNonZeroTargetAllKeysAllFramesOffsetName
Subtract the source color from the target color where the target color is not black for all frames starting at the target offset for the length of the source. Reference source and target by name.
ChromaAnimationAPI.SubtractNonZeroTargetAllKeysAllFramesOffsetName(string sourceAnimation, string targetAnimation, int offset);
SubtractNonZeroTargetAllKeysAllFramesOffsetNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.SubtractNonZeroTargetAllKeysAllFramesOffsetNameD(string sourceAnimation, string targetAnimation, double offset);
SubtractNonZeroTargetAllKeysOffset
Subtract the source color from the target color where the target color is not black from the source frame to the target offset frame. Reference source and target by id.
ChromaAnimationAPI.SubtractNonZeroTargetAllKeysOffset(int sourceAnimationId, int targetAnimationId, int frameId, int offset);
SubtractNonZeroTargetAllKeysOffsetName
Subtract the source color from the target color where the target color is not black from the source frame to the target offset frame. Reference source and target by name.
ChromaAnimationAPI.SubtractNonZeroTargetAllKeysOffsetName(string sourceAnimation, string targetAnimation, int frameId, int offset);
SubtractNonZeroTargetAllKeysOffsetNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.SubtractNonZeroTargetAllKeysOffsetNameD(string sourceAnimation, string targetAnimation, double frameId, double offset);
SubtractThresholdColorsMinMaxAllFramesRGB
Subtract all frames with the min RGB color where the animation color is less than the min threshold AND with the max RGB color where the animation is more than the max threshold. Animation is referenced by id.
ChromaAnimationAPI.SubtractThresholdColorsMinMaxAllFramesRGB(int animationId, int minThreshold, int minRed, int minGreen, int minBlue, int maxThreshold, int maxRed, int maxGreen, int maxBlue);
SubtractThresholdColorsMinMaxAllFramesRGBName
Subtract all frames with the min RGB color where the animation color is less than the min threshold AND with the max RGB color where the animation is more than the max threshold. Animation is referenced by name.
ChromaAnimationAPI.SubtractThresholdColorsMinMaxAllFramesRGBName(string path, int minThreshold, int minRed, int minGreen, int minBlue, int maxThreshold, int maxRed, int maxGreen, int maxBlue);
SubtractThresholdColorsMinMaxAllFramesRGBNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.SubtractThresholdColorsMinMaxAllFramesRGBNameD(string path, double minThreshold, double minRed, double minGreen, double minBlue, double maxThreshold, double maxRed, double maxGreen, double maxBlue);
SubtractThresholdColorsMinMaxRGB
Subtract the specified frame with the min RGB color where the animation color is less than the min threshold AND with the max RGB color where the animation is more than the max threshold. Animation is referenced by id.
ChromaAnimationAPI.SubtractThresholdColorsMinMaxRGB(int animationId, int frameId, int minThreshold, int minRed, int minGreen, int minBlue, int maxThreshold, int maxRed, int maxGreen, int maxBlue);
SubtractThresholdColorsMinMaxRGBName
Subtract the specified frame with the min RGB color where the animation color is less than the min threshold AND with the max RGB color where the animation is more than the max threshold. Animation is referenced by name.
ChromaAnimationAPI.SubtractThresholdColorsMinMaxRGBName(string path, int frameId, int minThreshold, int minRed, int minGreen, int minBlue, int maxThreshold, int maxRed, int maxGreen, int maxBlue);
SubtractThresholdColorsMinMaxRGBNameD
D suffix for limited data types.
double result = ChromaAnimationAPI.SubtractThresholdColorsMinMaxRGBNameD(string path, int frameId, int minThreshold, int minRed, int minGreen, int minBlue, int maxThreshold, int maxRed, int maxGreen, int maxBlue);
Trim the end of the animation. The length of the animation will be the lastFrameId plus one. Reference the animation by id.
ChromaAnimationAPI.TrimEndFrames(int animationId, int lastFrameId);
Trim the end of the animation. The length of the animation will be the lastFrameId plus one. Reference the animation by name.
ChromaAnimationAPI.TrimEndFramesName(string path, int lastFrameId);
D suffix for limited data types.
double result = ChromaAnimationAPI.TrimEndFramesNameD(string path, double lastFrameId);
Remove the frame from the animation. Reference animation by id.
ChromaAnimationAPI.TrimFrame(int animationId, int frameId);
Remove the frame from the animation. Reference animation by name.
ChromaAnimationAPI.TrimFrameName(string path, int frameId);
D suffix for limited data types.
double result = ChromaAnimationAPI.TrimFrameNameD(string path, double frameId);
Trim the start of the animation starting at frame 0 for the number of frames. Reference the animation by id.
ChromaAnimationAPI.TrimStartFrames(int animationId, int numberOfFrames);
Trim the start of the animation starting at frame 0 for the number of frames. Reference the animation by name.
ChromaAnimationAPI.TrimStartFramesName(string path, int numberOfFrames);
D suffix for limited data types.
double result = ChromaAnimationAPI.TrimStartFramesNameD(string path, double numberOfFrames);
Uninitializes the ChromaSDK
. Returns 0 upon success. Returns negative
one upon failure.
int result = ChromaAnimationAPI.Uninit();
D suffix for limited data types.
double result = ChromaAnimationAPI.UninitD();
Unloads Chroma
effects to free up resources. Returns the animation id
upon success. Returns negative one upon failure. Reference the animation
by id.
int result = ChromaAnimationAPI.UnloadAnimation(int animationId);
D suffix for limited data types.
double result = ChromaAnimationAPI.UnloadAnimationD(double animationId);
Unload the animation effects. Reference the animation by name.
ChromaAnimationAPI.UnloadAnimationName(string path);
Unload the the composite set of animation effects. Reference the animation by name.
ChromaAnimationAPI.UnloadComposite(string name);
Unload the Razer Chroma SDK Library before exiting the application.
ChromaAnimationAPI.UnloadLibrarySDK();
Unload the Razer Chroma Streaming Plugin Library before exiting the application.
ChromaAnimationAPI.UnloadLibraryStreamingPlugin();
Updates the frameId
of the Chroma
animation referenced by id and sets
the duration
(in seconds). The color
is expected to be an array of
the dimensions for the deviceType/device
. The length
parameter is the
size of the color
array. For EChromaSDKDevice1DEnum
the array size
should be MAX LEDS
. For EChromaSDKDevice2DEnum
the array size should
be MAX ROW
times MAX COLUMN
. Keys are populated only for EChromaSDKDevice2DEnum::DE_Keyboard
and EChromaSDKDevice2DEnum::DE_KeyboardExtended. Keys will only use the
EChromaSDKDevice2DEnum::DE_Keyboard MAX_ROW
times MAX_COLUMN
keysLength.
int result = ChromaAnimationAPI.UpdateFrame(int animationId, int frameId, float duration, int[] colors, int length, int[] keys, int keysLength);
Update the frameId
of the Chroma
animation referenced by name and sets
the duration
(in seconds). The color
is expected to be an array of
the dimensions for the deviceType/device
. The length
parameter is the
size of the color
array. For EChromaSDKDevice1DEnum
the array size
should be MAX LEDS
. For EChromaSDKDevice2DEnum
the array size should
be MAX ROW
times MAX COLUMN
. Keys are populated only for EChromaSDKDevice2DEnum::DE_Keyboard
and EChromaSDKDevice2DEnum::DE_KeyboardExtended. Keys will only use the
EChromaSDKDevice2DEnum::DE_Keyboard MAX_ROW
times MAX_COLUMN
keysLength.
Returns the animation id upon success. Returns negative one upon failure.
int result = ChromaAnimationAPI.UpdateFrameName(string path, int frameId, float duration, int[] colors, int length, int[] keys, int keysLength);
On by default, UseForwardChromaEvents
sends the animation name to CoreSetEventName
automatically when PlayAnimationName
is called.
ChromaAnimationAPI.UseForwardChromaEvents(bool flag);
When the idle animation flag is true, when no other animations are playing,
the idle animation will be used. The idle animation will not be affected
by the API calls to PluginIsPlaying, PluginStopAnimationType, PluginGetPlayingAnimationId,
and PluginGetPlayingAnimationCount. Then the idle animation flag is false,
the idle animation is disabled. Device
uses EChromaSDKDeviceEnum
enums.
ChromaAnimationAPI.UseIdleAnimation(int device, bool flag);
Set idle animation flag for all devices.
ChromaAnimationAPI.UseIdleAnimations(bool flag);
Set preloading animation flag, which is set to true by default. Reference animation by id.
ChromaAnimationAPI.UsePreloading(int animationId, bool flag);
Set preloading animation flag, which is set to true by default. Reference animation by name.
ChromaAnimationAPI.UsePreloadingName(string path, bool flag);