- Note: Visit the Chroma Animation Guide to find the latest supported plugin for Chroma RGB.
Table of Contents
- Quick Start
- See Also
- About
- Chroma Editor Library
- Windows PC
- Windows Cloud
- API Class
- Initialization
- API
Docs:
- Chroma Animation Guide - Visual examples of the Chroma Animation API methods
Plugins:
- CChromaEditor - C++ native MFC library for playing and editing Chroma animations
-
Install Synapse
-
Make sure the Chroma Connect module is installed.
- If you don't have Chroma hardware, you can see Chroma effects with the Chroma Emulator
The VB Chroma Game Loop Sample App
is a sample project that dynamically sets colors in a game loop.
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
.
For Windows PC
builds the RzChromaSDK.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
Win32BuildFolder\CChromaEditorLibrary.dll
64-bit libraries
Win64BuildFolder\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. By running the Windows Cloud
version of the library Chroma
effects can reach your local machine and connected hardware. Cloud instances won't have Synapse installed which requires special cloud versions of the libraries. The Chroma Editor Library
uses the core RzChromaSDK
low-level library to send Chroma effects to the cloud with the RzChromaStreamPlugin
streaming library. Viewers can watch the cloud stream via the Razer Stream Portal.
32-bit libraries
Win32BuildFolder\CChromaEditorLibrary.dll
Win32BuildFolder\RzChromaSDK.dll
Win32BuildFolder\RzChromaStreamPlugin.dll
64-bit libraries
Win64BuildFolder\CChromaEditorLibrary64.dll
Win64BuildFolder\RzChromaSDK64.dll
Win64BuildFolder\RzChromaStreamPlugin64.dll
The ChromaAnimationAPI
module provides a wrapper for the Chroma Editor Library. The wrapper for the API can be found at ChromaAnimationAPI.vb.
The ChromaAnimationAPI.InitSDK(appInfo)
method returns RazerErrors.RZRESULT_SUCCESS
when initialization has succeeded. Avoid making calls to the Chroma API when anything other than success is returned. A unsuccessful result indicates Chroma
is not present on the machine.
Dim appInfo As ChromaSDK.APPINFOTYPE = New APPINFOTYPE()
appInfo.Title = "Sample Game Title";
appInfo.Description = "Sample Game Description";
appInfo.Author_Name = "Company Name";
appInfo.Author_Contact = "Company Website or Email";
// &H1 | // Keyboards
// &H2 | // Mice
// &H4 | // Headset
// &H8 | // Mousepads
// &H10 | // Keypads
// &H20 // ChromaLink devices
appInfo.SupportedDevice = (&H1 Xor &H2 Xor &H4 Xor &H8 Xor &H10 Xor &H20)
// &H1 | // Utility. (To specifiy this is an utility application)
// &H2 // Game. (To specifiy this is a game);
appInfo.Category = &H2;
Dim result As Integer = ChromaAnimationAPI.InitSDK(appInfo);
if (result <> RazerErrors.RZRESULT_SUCCESS)
{
Console.Error.WriteLine("Failed to initialize Chroma SDK with error={0}\r\n", result);
// avoid making Chroma API calls after a non-zero init result
return;
}
- AddColor
- AddFrame
- AddNonZeroAllKeysAllFrames
- AddNonZeroAllKeysAllFramesName
- AddNonZeroAllKeysAllFramesNameD
- AddNonZeroAllKeysAllFramesOffset
- AddNonZeroAllKeysAllFramesOffsetName
- AddNonZeroAllKeysAllFramesOffsetNameD
- 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
- CopyZeroAllKeysAllFrames
- CopyZeroAllKeysAllFramesName
- CopyZeroAllKeysAllFramesNameD
- CopyZeroAllKeysAllFramesOffset
- CopyZeroAllKeysAllFramesOffsetName
- CopyZeroAllKeysAllFramesOffsetNameD
- CopyZeroKeyColor
- CopyZeroKeyColorName
- CopyZeroKeyColorNameD
- CopyZeroTargetAllKeysAllFrames
- CopyZeroTargetAllKeysAllFramesName
- CopyZeroTargetAllKeysAllFramesNameD
- CoreCreateChromaLinkEffect
- CoreCreateEffect
- CoreCreateHeadsetEffect
- CoreCreateKeyboardEffect
- CoreCreateKeypadEffect
- CoreCreateMouseEffect
- CoreCreateMousepadEffect
- CoreDeleteEffect
- CoreInit
- CoreInitSDK
- CoreQueryDevice
- CoreSetEffect
- 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
- GetKeyColor
- GetKeyColorD
- GetKeyColorName
- GetLibraryLoadedState
- GetLibraryLoadedStateD
- GetMaxColumn
- GetMaxColumnD
- GetMaxLeds
- GetMaxLedsD
- GetMaxRow
- GetMaxRowD
- GetPlayingAnimationCount
- GetPlayingAnimationId
- GetRGB
- GetRGBD
- 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
- SubtractNonZeroAllKeysAllFrames
- SubtractNonZeroAllKeysAllFramesName
- SubtractNonZeroAllKeysAllFramesNameD
- SubtractNonZeroAllKeysAllFramesOffset
- SubtractNonZeroAllKeysAllFramesOffsetName
- SubtractNonZeroAllKeysAllFramesOffsetNameD
- 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
- UseIdleAnimation
- UseIdleAnimations
- UsePreloading
- UsePreloadingName
Return the sum of colors
Dim result As Integer = ChromaAnimationAPI.AddColor(color1 As Integer, color2 As Integer)
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
* MAX COLUMN
. Returns the animation id upon
success. Returns -1 upon failure.
Dim result As Integer = ChromaAnimationAPI.AddFrame(animationId As Integer, duration As Single, colors As Integer(), length As Integer)
Add source color to target where color is not black for all frames, reference source and target by id.
ChromaAnimationAPI.AddNonZeroAllKeysAllFrames(sourceAnimationId As Integer, targetAnimationId As Integer)
AddNonZeroAllKeysAllFramesName
Add source color to target where color is not black for all frames, reference source and target by name.
ChromaAnimationAPI.AddNonZeroAllKeysAllFramesName(sourceAnimation As String, targetAnimation As String)
AddNonZeroAllKeysAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.AddNonZeroAllKeysAllFramesNameD(sourceAnimation As String, targetAnimation As String)
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(sourceAnimationId As Integer, targetAnimationId As Integer, offset As Integer)
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(sourceAnimation As String, targetAnimation As String, offset As Integer)
AddNonZeroAllKeysAllFramesOffsetNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.AddNonZeroAllKeysAllFramesOffsetNameD(sourceAnimation As String, targetAnimation As String, offset As Double)
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(sourceAnimationId As Integer, targetAnimationId As Integer, frameId As Integer, offset As Integer)
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(sourceAnimation As String, targetAnimation As String, frameId As Integer, offset As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.AddNonZeroAllKeysOffsetNameD(sourceAnimation As String, targetAnimation As String, frameId As Double, offset As Double)
AddNonZeroTargetAllKeysAllFrames
Add source color to target where the target color is not black for all frames, reference source and target by id.
ChromaAnimationAPI.AddNonZeroTargetAllKeysAllFrames(sourceAnimationId As Integer, targetAnimationId As Integer)
AddNonZeroTargetAllKeysAllFramesName
Add source color to target where the target color is not black for all frames, reference source and target by name.
ChromaAnimationAPI.AddNonZeroTargetAllKeysAllFramesName(sourceAnimation As String, targetAnimation As String)
AddNonZeroTargetAllKeysAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.AddNonZeroTargetAllKeysAllFramesNameD(sourceAnimation As String, targetAnimation As String)
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(sourceAnimationId As Integer, targetAnimationId As Integer, offset As Integer)
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(sourceAnimation As String, targetAnimation As String, offset As Integer)
AddNonZeroTargetAllKeysAllFramesOffsetNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.AddNonZeroTargetAllKeysAllFramesOffsetNameD(sourceAnimation As String, targetAnimation As String, offset As Double)
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(sourceAnimationId As Integer, targetAnimationId As Integer, frameId As Integer, offset As Integer)
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(sourceAnimation As String, targetAnimation As String, frameId As Integer, offset As Integer)
AddNonZeroTargetAllKeysOffsetNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.AddNonZeroTargetAllKeysOffsetNameD(sourceAnimation As String, targetAnimation As String, frameId As Double, offset As Double)
Append all source frames to the target animation, reference source and target by id.
ChromaAnimationAPI.AppendAllFrames(sourceAnimationId As Integer, targetAnimationId As Integer)
Append all source frames to the target animation, reference source and target by name.
ChromaAnimationAPI.AppendAllFramesName(sourceAnimation As String, targetAnimation As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.AppendAllFramesNameD(sourceAnimation As String, targetAnimation As String)
PluginClearAll
will issue a CLEAR
effect for all devices.
ChromaAnimationAPI.ClearAll()
PluginClearAnimationType
will issue a CLEAR
effect for the given device.
ChromaAnimationAPI.ClearAnimationType(deviceType As Integer, device As Integer)
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 -1 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.
Dim result As Integer = ChromaAnimationAPI.CloseAnimation(animationId As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CloseAnimationD(animationId As Double)
Closes the Chroma
animation referenced by name so that the animation can
be reloaded from disk.
ChromaAnimationAPI.CloseAnimationName(path As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CloseAnimationNameD(path As String)
PluginCloseComposite
closes a set of animations so they can be reloaded
from disk. The set of animations will be stopped if playing.
ChromaAnimationAPI.CloseComposite(name As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CloseCompositeD(name As String)
Copy source animation to target animation for the given frame. Source and target are referenced by id.
ChromaAnimationAPI.CopyAllKeys(sourceAnimationId As Integer, targetAnimationId As Integer, frameId As Integer)
Copy source animation to target animation for the given frame. Source and target are referenced by id.
ChromaAnimationAPI.CopyAllKeysName(sourceAnimation As String, targetAnimation As String, frameId As Integer)
Copy animation to named target animation in memory. If target animation exists, close first. Source is referenced by id.
Dim result As Integer = ChromaAnimationAPI.CopyAnimation(sourceAnimationId As Integer, targetAnimation As String)
Copy animation to named target animation in memory. If target animation exists, close first. Source is referenced by name.
ChromaAnimationAPI.CopyAnimationName(sourceAnimation As String, targetAnimation As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyAnimationNameD(sourceAnimation As String, targetAnimation As String)
Copy blue channel to other channels for all frames. Intensity range is 0.0 to 1.0. Reference the animation by id.
ChromaAnimationAPI.CopyBlueChannelAllFrames(animationId As Integer, redIntensity As Single, greenIntensity As Single)
Copy blue channel to other channels for all frames. Intensity range is 0.0 to 1.0. Reference the animation by name.
ChromaAnimationAPI.CopyBlueChannelAllFramesName(path As String, redIntensity As Single, greenIntensity As Single)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyBlueChannelAllFramesNameD(path As String, redIntensity As Double, greenIntensity As Double)
Copy green channel to other channels for all frames. Intensity range is 0.0 to 1.0. Reference the animation by id.
ChromaAnimationAPI.CopyGreenChannelAllFrames(animationId As Integer, redIntensity As Single, blueIntensity As Single)
Copy green channel to other channels for all frames. Intensity range is 0.0 to 1.0. Reference the animation by name.
ChromaAnimationAPI.CopyGreenChannelAllFramesName(path As String, redIntensity As Single, blueIntensity As Single)
CopyGreenChannelAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyGreenChannelAllFramesNameD(path As String, redIntensity As Double, blueIntensity As Double)
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(sourceAnimationId As Integer, targetAnimationId As Integer, frameId As Integer, rzkey As Integer)
Copy animation key color from the source animation to the target animation for all frames. Reference the source and target by id.
ChromaAnimationAPI.CopyKeyColorAllFrames(sourceAnimationId As Integer, targetAnimationId As Integer, rzkey As Integer)
Copy animation key color from the source animation to the target animation for all frames. Reference the source and target by name.
ChromaAnimationAPI.CopyKeyColorAllFramesName(sourceAnimation As String, targetAnimation As String, rzkey As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyKeyColorAllFramesNameD(sourceAnimation As String, targetAnimation As String, rzkey As Double)
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(sourceAnimationId As Integer, targetAnimationId As Integer, rzkey As Integer, offset As Integer)
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(sourceAnimation As String, targetAnimation As String, rzkey As Integer, offset As Integer)
CopyKeyColorAllFramesOffsetNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyKeyColorAllFramesOffsetNameD(sourceAnimation As String, targetAnimation As String, rzkey As Double, offset As Double)
Copy animation key color from the source animation to the target animation for the given frame.
ChromaAnimationAPI.CopyKeyColorName(sourceAnimation As String, targetAnimation As String, frameId As Integer, rzkey As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyKeyColorNameD(sourceAnimation As String, targetAnimation As String, frameId As Double, rzkey As Double)
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(sourceAnimationId As Integer, targetAnimationId As Integer, frameId As Integer, keys As Integer(), size As Integer)
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(sourceAnimationId As Integer, targetAnimationId As Integer, keys As Integer(), size As Integer)
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(sourceAnimation As String, targetAnimation As String, keys As Integer(), size As Integer)
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(sourceAnimation As String, targetAnimation As String, frameId As Integer, keys As Integer(), size As Integer)
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(sourceAnimationId As Integer, targetAnimationId As Integer, sourceFrameId As Integer, targetFrameId As Integer, keys As Integer(), size As Integer)
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(sourceAnimation As String, targetAnimation As String, sourceFrameId As Integer, targetFrameId As Integer, keys As Integer(), size As Integer)
Copy source animation to target animation for the given frame. Source and target are referenced by id.
ChromaAnimationAPI.CopyNonZeroAllKeys(sourceAnimationId As Integer, targetAnimationId As Integer, frameId As Integer)
Copy nonzero colors from a source animation to a target animation for all frames. Reference source and target by id.
ChromaAnimationAPI.CopyNonZeroAllKeysAllFrames(sourceAnimationId As Integer, targetAnimationId As Integer)
CopyNonZeroAllKeysAllFramesName
Copy nonzero colors from a source animation to a target animation for all frames. Reference source and target by name.
ChromaAnimationAPI.CopyNonZeroAllKeysAllFramesName(sourceAnimation As String, targetAnimation As String)
CopyNonZeroAllKeysAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyNonZeroAllKeysAllFramesNameD(sourceAnimation As String, targetAnimation As String)
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(sourceAnimationId As Integer, targetAnimationId As Integer, offset As Integer)
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(sourceAnimation As String, targetAnimation As String, offset As Integer)
CopyNonZeroAllKeysAllFramesOffsetNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyNonZeroAllKeysAllFramesOffsetNameD(sourceAnimation As String, targetAnimation As String, offset As Double)
Copy nonzero colors from source animation to target animation for the specified frame. Source and target are referenced by id.
ChromaAnimationAPI.CopyNonZeroAllKeysName(sourceAnimation As String, targetAnimation As String, frameId As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyNonZeroAllKeysNameD(sourceAnimation As String, targetAnimation As String, frameId As Double)
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(sourceAnimationId As Integer, targetAnimationId As Integer, frameId As Integer, offset As Integer)
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(sourceAnimation As String, targetAnimation As String, frameId As Integer, offset As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyNonZeroAllKeysOffsetNameD(sourceAnimation As String, targetAnimation As String, frameId As Double, offset As Double)
Copy animation key color from the source animation to the target animation for the given frame where color is not zero.
ChromaAnimationAPI.CopyNonZeroKeyColor(sourceAnimationId As Integer, targetAnimationId As Integer, frameId As Integer, rzkey As Integer)
Copy animation key color from the source animation to the target animation for the given frame where color is not zero.
ChromaAnimationAPI.CopyNonZeroKeyColorName(sourceAnimation As String, targetAnimation As String, frameId As Integer, rzkey As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyNonZeroKeyColorNameD(sourceAnimation As String, targetAnimation As String, frameId As Double, rzkey As Double)
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(sourceAnimationId As Integer, targetAnimationId As Integer, frameId As Integer)
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(sourceAnimationId As Integer, targetAnimationId As Integer)
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(sourceAnimation As String, targetAnimation As String)
CopyNonZeroTargetAllKeysAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyNonZeroTargetAllKeysAllFramesNameD(sourceAnimation As String, targetAnimation As String)
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(sourceAnimationId As Integer, targetAnimationId As Integer, offset As Integer)
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(sourceAnimation As String, targetAnimation As String, offset As Integer)
CopyNonZeroTargetAllKeysAllFramesOffsetNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyNonZeroTargetAllKeysAllFramesOffsetNameD(sourceAnimation As String, targetAnimation As String, offset As Double)
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(sourceAnimation As String, targetAnimation As String, frameId As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyNonZeroTargetAllKeysNameD(sourceAnimation As String, targetAnimation As String, frameId As Double)
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(sourceAnimationId As Integer, targetAnimationId As Integer, frameId As Integer, offset As Integer)
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(sourceAnimation As String, targetAnimation As String, frameId As Integer, offset As Integer)
CopyNonZeroTargetAllKeysOffsetNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyNonZeroTargetAllKeysOffsetNameD(sourceAnimation As String, targetAnimation As String, frameId As Double, offset As Double)
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(sourceAnimationId As Integer, targetAnimationId As Integer)
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(sourceAnimation As String, targetAnimation As String)
CopyNonZeroTargetZeroAllKeysAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyNonZeroTargetZeroAllKeysAllFramesNameD(sourceAnimation As String, targetAnimation As String)
Copy red channel to other channels for all frames. Intensity range is 0.0 to 1.0. Reference the animation by id.
ChromaAnimationAPI.CopyRedChannelAllFrames(animationId As Integer, greenIntensity As Single, blueIntensity As Single)
Copy green channel to other channels for all frames. Intensity range is 0.0 to 1.0. Reference the animation by name.
ChromaAnimationAPI.CopyRedChannelAllFramesName(path As String, greenIntensity As Single, blueIntensity As Single)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyRedChannelAllFramesNameD(path As String, greenIntensity As Double, blueIntensity As Double)
Copy zero colors from source animation to target animation for all frames. Source and target are referenced by id.
ChromaAnimationAPI.CopyZeroAllKeysAllFrames(sourceAnimationId As Integer, targetAnimationId As Integer)
Copy zero colors from source animation to target animation for all frames. Source and target are referenced by name.
ChromaAnimationAPI.CopyZeroAllKeysAllFramesName(sourceAnimation As String, targetAnimation As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyZeroAllKeysAllFramesNameD(sourceAnimation As String, targetAnimation As String)
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(sourceAnimationId As Integer, targetAnimationId As Integer, offset As Integer)
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(sourceAnimation As String, targetAnimation As String, offset As Integer)
CopyZeroAllKeysAllFramesOffsetNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyZeroAllKeysAllFramesOffsetNameD(sourceAnimation As String, targetAnimation As String, offset As Double)
Copy zero key color from source animation to target animation for the specified frame. Source and target are referenced by id.
ChromaAnimationAPI.CopyZeroKeyColor(sourceAnimationId As Integer, targetAnimationId As Integer, frameId As Integer, rzkey As Integer)
Copy zero key color from source animation to target animation for the specified frame. Source and target are referenced by name.
ChromaAnimationAPI.CopyZeroKeyColorName(sourceAnimation As String, targetAnimation As String, frameId As Integer, rzkey As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyZeroKeyColorNameD(sourceAnimation As String, targetAnimation As String, frameId As Double, rzkey As Double)
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(sourceAnimationId As Integer, targetAnimationId As Integer)
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(sourceAnimation As String, targetAnimation As String)
CopyZeroTargetAllKeysAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.CopyZeroTargetAllKeysAllFramesNameD(sourceAnimation As String, targetAnimation As String)
Direct access to low level API.
Dim result As Integer = ChromaAnimationAPI.CoreCreateChromaLinkEffect(effect As Integer, pParam As IntPtr, ByRef pEffectId As Guid)
Direct access to low level API.
Dim result As Integer = ChromaAnimationAPI.CoreCreateEffect(deviceId As Guid, effect As EFFECT_TYPE, pParam As IntPtr, ByRef pEffectId As Guid)
Direct access to low level API.
Dim result As Integer = ChromaAnimationAPI.CoreCreateHeadsetEffect(effect As Integer, pParam As IntPtr, ByRef pEffectId As Guid)
Direct access to low level API.
Dim result As Integer = ChromaAnimationAPI.CoreCreateKeyboardEffect(effect As Integer, pParam As IntPtr, ByRef pEffectId As Guid)
Direct access to low level API.
Dim result As Integer = ChromaAnimationAPI.CoreCreateKeypadEffect(effect As Integer, pParam As IntPtr, ByRef pEffectId As Guid)
Direct access to low level API.
Dim result As Integer = ChromaAnimationAPI.CoreCreateMouseEffect(effect As Integer, pParam As IntPtr, ByRef pEffectId As Guid)
Direct access to low level API.
Dim result As Integer = ChromaAnimationAPI.CoreCreateMousepadEffect(effect As Integer, pParam As IntPtr, ByRef pEffectId As Guid)
Direct access to low level API.
Dim result As Integer = ChromaAnimationAPI.CoreDeleteEffect(effectId As Guid)
Direct access to low level API.
Dim result As Integer = ChromaAnimationAPI.CoreInit()
Direct access to low level API.
Dim result As Integer = ChromaAnimationAPI.CoreInitSDK(ByRef appInfo As ChromaSDK.APPINFOTYPE)
Direct access to low level API.
Dim result As Integer = ChromaAnimationAPI.CoreQueryDevice(deviceId As Guid, ByRef deviceInfo As DEVICE_INFO_TYPE)
Direct access to low level API.
Dim result As Integer = ChromaAnimationAPI.CoreSetEffect(effectId As Guid)
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.
Dim result As Boolean = ChromaAnimationAPI.CoreStreamBroadcast(streamId As String, streamKey As String)
End broadcasting Chroma RGB data. StreamGetStatus() should return the BROADCASTING status to use this method.
Dim result As Boolean = 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.
ChromaAnimationAPI.CoreStreamGetAuthShortcode(ByRef shortcode As String, ByRef length As byte, platform As String, title As String)
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.
Dim result As Boolean = ChromaAnimationAPI.CoreStreamGetFocus(ByRef focus As String, ByRef length As byte)
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. platform: is the null terminated string that identifies the source of the stream: { GEFORCE_NOW, LUNA, STADIA, GAME_PASS } StreamGetStatus() should return the READY status to use this method.
ChromaAnimationAPI.CoreStreamGetId(shortcode As String, ByRef streamId As String, ByRef length As byte)
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(shortcode As String, ByRef streamKey As String, ByRef length As byte)
Returns StreamStatus, the current status of the service
Dim result As ChromaSDK.Stream.StreamStatusType = ChromaAnimationAPI.CoreStreamGetStatus()
Convert StreamStatusType to a printable string
Dim result As String = ChromaAnimationAPI.CoreStreamGetStatusString(status As ChromaSDK.Stream.StreamStatusType)
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
Dim result As Boolean = ChromaAnimationAPI.CoreStreamReleaseShortcode(shortcode As String)
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.
Dim result As Boolean = ChromaAnimationAPI.CoreStreamSetFocus(focus As String)
Returns true if the Chroma streaming is supported. If false is returned, avoid calling stream methods.
Dim result As Boolean = 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.
Dim result As Boolean = ChromaAnimationAPI.CoreStreamWatch(streamId As String, timestamp As ulong)
End watching Chroma RGB data stream. StreamGetStatus() should return the WATCHING status to use this method.
Dim result As Boolean = ChromaAnimationAPI.CoreStreamWatchEnd()
Direct access to low level API.
Dim result As Integer = 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 -1
upon failure. Saves a Chroma
animation file with the .chroma
extension
at the given path. Returns the animation id upon success. Returns -1 upon
failure.
Dim result As Integer = ChromaAnimationAPI.CreateAnimation(path As String, deviceType As Integer, device As Integer)
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 -1 upon failure. Returns the animation id upon success. Returns
-1 upon failure.
Dim result As Integer = ChromaAnimationAPI.CreateAnimationInMemory(deviceType As Integer, device As Integer)
Create a device specific effect.
Dim result As Integer = ChromaAnimationAPI.CreateEffect(deviceId As Guid, effect As EFFECT_TYPE, colors As Integer(), size As Integer, ByRef effectId As FChromaSDKGuid)
Delete an effect given the effect id.
Dim result As Integer = ChromaAnimationAPI.DeleteEffect(effectId As Guid)
Duplicate the first animation frame so that the animation length matches the frame count. Animation is referenced by id.
ChromaAnimationAPI.DuplicateFirstFrame(animationId As Integer, frameCount As Integer)
Duplicate the first animation frame so that the animation length matches the frame count. Animation is referenced by name.
ChromaAnimationAPI.DuplicateFirstFrameName(path As String, frameCount As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.DuplicateFirstFrameNameD(path As String, frameCount As Double)
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(animationId As Integer)
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(path As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.DuplicateFramesNameD(path As String)
Duplicate all the animation frames in reverse so that the animation plays forwards and backwards. Animation is referenced by id.
ChromaAnimationAPI.DuplicateMirrorFrames(animationId As Integer)
Duplicate all the animation frames in reverse so that the animation plays forwards and backwards. Animation is referenced by name.
ChromaAnimationAPI.DuplicateMirrorFramesName(path As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.DuplicateMirrorFramesNameD(path As String)
Fade the animation to black starting at the fade frame index to the end of the animation. Animation is referenced by id.
ChromaAnimationAPI.FadeEndFrames(animationId As Integer, fade As Integer)
Fade the animation to black starting at the fade frame index to the end of the animation. Animation is referenced by name.
ChromaAnimationAPI.FadeEndFramesName(path As String, fade As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FadeEndFramesNameD(path As String, fade As Double)
Fade the animation from black to full color starting at 0 to the fade frame index. Animation is referenced by id.
ChromaAnimationAPI.FadeStartFrames(animationId As Integer, fade As Integer)
Fade the animation from black to full color starting at 0 to the fade frame index. Animation is referenced by name.
ChromaAnimationAPI.FadeStartFramesName(path As String, fade As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FadeStartFramesNameD(path As String, fade As Double)
Set the RGB value for all colors in the specified frame. Animation is referenced by id.
ChromaAnimationAPI.FillColor(animationId As Integer, frameId As Integer, color As Integer)
Set the RGB value for all colors for all frames. Animation is referenced by id.
ChromaAnimationAPI.FillColorAllFrames(animationId As Integer, color As Integer)
Set the RGB value for all colors for all frames. Animation is referenced by name.
ChromaAnimationAPI.FillColorAllFramesName(path As String, color As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillColorAllFramesNameD(path As String, color As Double)
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(animationId As Integer, red As Integer, green As Integer, blue As Integer)
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(path As String, red As Integer, green As Integer, blue As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillColorAllFramesRGBNameD(path As String, red As Double, green As Double, blue As Double)
Set the RGB value for all colors in the specified frame. Animation is referenced by name.
ChromaAnimationAPI.FillColorName(path As String, frameId As Integer, color As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillColorNameD(path As String, frameId As Double, color As Double)
Set the RGB value for all colors in the specified frame. Animation is referenced by id.
ChromaAnimationAPI.FillColorRGB(animationId As Integer, frameId As Integer, red As Integer, green As Integer, blue As Integer)
Set the RGB value for all colors in the specified frame. Animation is referenced by name.
ChromaAnimationAPI.FillColorRGBName(path As String, frameId As Integer, red As Integer, green As Integer, blue As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillColorRGBNameD(path As String, frameId As Double, red As Double, green As Double, blue As Double)
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(animationId As Integer, frameId As Integer, color As Integer)
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(animationId As Integer, color As Integer)
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(path As String, color As Integer)
FillNonZeroColorAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillNonZeroColorAllFramesNameD(path As String, color As Double)
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(animationId As Integer, red As Integer, green As Integer, blue As Integer)
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(path As String, red As Integer, green As Integer, blue As Integer)
FillNonZeroColorAllFramesRGBNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillNonZeroColorAllFramesRGBNameD(path As String, red As Double, green As Double, blue As Double)
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(path As String, frameId As Integer, color As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillNonZeroColorNameD(path As String, frameId As Double, color As Double)
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(animationId As Integer, frameId As Integer, red As Integer, green As Integer, blue As Integer)
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(path As String, frameId As Integer, red As Integer, green As Integer, blue As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillNonZeroColorRGBNameD(path As String, frameId As Double, red As Double, green As Double, blue As Double)
Fill the frame with random RGB values for the given frame. Animation is referenced by id.
ChromaAnimationAPI.FillRandomColors(animationId As Integer, frameId As Integer)
Fill the frame with random RGB values for all frames. Animation is referenced by id.
ChromaAnimationAPI.FillRandomColorsAllFrames(animationId As Integer)
Fill the frame with random RGB values for all frames. Animation is referenced by name.
ChromaAnimationAPI.FillRandomColorsAllFramesName(path As String)
FillRandomColorsAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillRandomColorsAllFramesNameD(path As String)
Fill the frame with random black and white values for the specified frame. Animation is referenced by id.
ChromaAnimationAPI.FillRandomColorsBlackAndWhite(animationId As Integer, frameId As Integer)
FillRandomColorsBlackAndWhiteAllFrames
Fill the frame with random black and white values for all frames. Animation is referenced by id.
ChromaAnimationAPI.FillRandomColorsBlackAndWhiteAllFrames(animationId As Integer)
FillRandomColorsBlackAndWhiteAllFramesName
Fill the frame with random black and white values for all frames. Animation is referenced by name.
ChromaAnimationAPI.FillRandomColorsBlackAndWhiteAllFramesName(path As String)
FillRandomColorsBlackAndWhiteAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillRandomColorsBlackAndWhiteAllFramesNameD(path As String)
FillRandomColorsBlackAndWhiteName
Fill the frame with random black and white values for the specified frame. Animation is referenced by name.
ChromaAnimationAPI.FillRandomColorsBlackAndWhiteName(path As String, frameId As Integer)
FillRandomColorsBlackAndWhiteNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillRandomColorsBlackAndWhiteNameD(path As String, frameId As Double)
Fill the frame with random RGB values for the given frame. Animation is referenced by name.
ChromaAnimationAPI.FillRandomColorsName(path As String, frameId As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillRandomColorsNameD(path As String, frameId As Double)
Fill the specified frame with RGB color where the animation color is less than the RGB threshold. Animation is referenced by id.
ChromaAnimationAPI.FillThresholdColors(animationId As Integer, frameId As Integer, threshold As Integer, color As Integer)
Fill all frames with RGB color where the animation color is less than the RGB threshold. Animation is referenced by id.
ChromaAnimationAPI.FillThresholdColorsAllFrames(animationId As Integer, threshold As Integer, color As Integer)
FillThresholdColorsAllFramesName
Fill all frames with RGB color where the animation color is less than the RGB threshold. Animation is referenced by name.
ChromaAnimationAPI.FillThresholdColorsAllFramesName(path As String, threshold As Integer, color As Integer)
FillThresholdColorsAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillThresholdColorsAllFramesNameD(path As String, threshold As Double, color As Double)
FillThresholdColorsAllFramesRGB
Fill all frames with RGB color where the animation color is less than the threshold. Animation is referenced by id.
ChromaAnimationAPI.FillThresholdColorsAllFramesRGB(animationId As Integer, threshold As Integer, red As Integer, green As Integer, blue As Integer)
FillThresholdColorsAllFramesRGBName
Fill all frames with RGB color where the animation color is less than the threshold. Animation is referenced by name.
ChromaAnimationAPI.FillThresholdColorsAllFramesRGBName(path As String, threshold As Integer, red As Integer, green As Integer, blue As Integer)
FillThresholdColorsAllFramesRGBNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillThresholdColorsAllFramesRGBNameD(path As String, threshold As Double, red As Double, green As Double, blue As Double)
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(animationId As Integer, minThreshold As Integer, minRed As Integer, minGreen As Integer, minBlue As Integer, maxThreshold As Integer, maxRed As Integer, maxGreen As Integer, maxBlue As Integer)
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(path As String, minThreshold As Integer, minRed As Integer, minGreen As Integer, minBlue As Integer, maxThreshold As Integer, maxRed As Integer, maxGreen As Integer, maxBlue As Integer)
FillThresholdColorsMinMaxAllFramesRGBNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillThresholdColorsMinMaxAllFramesRGBNameD(path As String, minThreshold As Double, minRed As Double, minGreen As Double, minBlue As Double, maxThreshold As Double, maxRed As Double, maxGreen As Double, maxBlue As Double)
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(animationId As Integer, frameId As Integer, minThreshold As Integer, minRed As Integer, minGreen As Integer, minBlue As Integer, maxThreshold As Integer, maxRed As Integer, maxGreen As Integer, maxBlue As Integer)
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(path As String, frameId As Integer, minThreshold As Integer, minRed As Integer, minGreen As Integer, minBlue As Integer, maxThreshold As Integer, maxRed As Integer, maxGreen As Integer, maxBlue As Integer)
FillThresholdColorsMinMaxRGBNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillThresholdColorsMinMaxRGBNameD(path As String, frameId As Double, minThreshold As Double, minRed As Double, minGreen As Double, minBlue As Double, maxThreshold As Double, maxRed As Double, maxGreen As Double, maxBlue As Double)
Fill the specified frame with RGB color where the animation color is less than the RGB threshold. Animation is referenced by name.
ChromaAnimationAPI.FillThresholdColorsName(path As String, frameId As Integer, threshold As Integer, color As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillThresholdColorsNameD(path As String, frameId As Double, threshold As Double, color As Double)
Fill the specified frame with RGB color where the animation color is less than the RGB threshold. Animation is referenced by id.
ChromaAnimationAPI.FillThresholdColorsRGB(animationId As Integer, frameId As Integer, threshold As Integer, red As Integer, green As Integer, blue As Integer)
Fill the specified frame with RGB color where the animation color is less than the RGB threshold. Animation is referenced by name.
ChromaAnimationAPI.FillThresholdColorsRGBName(path As String, frameId As Integer, threshold As Integer, red As Integer, green As Integer, blue As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillThresholdColorsRGBNameD(path As String, frameId As Double, threshold As Double, red As Double, green As Double, blue As Double)
FillThresholdRGBColorsAllFramesRGB
Fill all frames with RGB color where the animation color is less than the RGB threshold. Animation is referenced by id.
ChromaAnimationAPI.FillThresholdRGBColorsAllFramesRGB(animationId As Integer, redThreshold As Integer, greenThreshold As Integer, blueThreshold As Integer, red As Integer, green As Integer, blue As Integer)
FillThresholdRGBColorsAllFramesRGBName
Fill all frames with RGB color where the animation color is less than the RGB threshold. Animation is referenced by name.
ChromaAnimationAPI.FillThresholdRGBColorsAllFramesRGBName(path As String, redThreshold As Integer, greenThreshold As Integer, blueThreshold As Integer, red As Integer, green As Integer, blue As Integer)
FillThresholdRGBColorsAllFramesRGBNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillThresholdRGBColorsAllFramesRGBNameD(path As String, redThreshold As Double, greenThreshold As Double, blueThreshold As Double, red As Double, green As Double, blue As Double)
Fill the specified frame with RGB color where the animation color is less than the RGB threshold. Animation is referenced by id.
ChromaAnimationAPI.FillThresholdRGBColorsRGB(animationId As Integer, frameId As Integer, redThreshold As Integer, greenThreshold As Integer, blueThreshold As Integer, red As Integer, green As Integer, blue As Integer)
Fill the specified frame with RGB color where the animation color is less than the RGB threshold. Animation is referenced by name.
ChromaAnimationAPI.FillThresholdRGBColorsRGBName(path As String, frameId As Integer, redThreshold As Integer, greenThreshold As Integer, blueThreshold As Integer, red As Integer, green As Integer, blue As Integer)
FillThresholdRGBColorsRGBNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillThresholdRGBColorsRGBNameD(path As String, frameId As Double, redThreshold As Double, greenThreshold As Double, blueThreshold As Double, red As Double, green As Double, blue As Double)
Fill the specified frame with RGB color where the animation color is zero. Animation is referenced by id.
ChromaAnimationAPI.FillZeroColor(animationId As Integer, frameId As Integer, color As Integer)
Fill all frames with RGB color where the animation color is zero. Animation is referenced by id.
ChromaAnimationAPI.FillZeroColorAllFrames(animationId As Integer, color As Integer)
Fill all frames with RGB color where the animation color is zero. Animation is referenced by name.
ChromaAnimationAPI.FillZeroColorAllFramesName(path As String, color As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillZeroColorAllFramesNameD(path As String, color As Double)
Fill all frames with RGB color where the animation color is zero. Animation is referenced by id.
ChromaAnimationAPI.FillZeroColorAllFramesRGB(animationId As Integer, red As Integer, green As Integer, blue As Integer)
Fill all frames with RGB color where the animation color is zero. Animation is referenced by name.
ChromaAnimationAPI.FillZeroColorAllFramesRGBName(path As String, red As Integer, green As Integer, blue As Integer)
FillZeroColorAllFramesRGBNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillZeroColorAllFramesRGBNameD(path As String, red As Double, green As Double, blue As Double)
Fill the specified frame with RGB color where the animation color is zero. Animation is referenced by name.
ChromaAnimationAPI.FillZeroColorName(path As String, frameId As Integer, color As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillZeroColorNameD(path As String, frameId As Double, color As Double)
Fill the specified frame with RGB color where the animation color is zero. Animation is referenced by id.
ChromaAnimationAPI.FillZeroColorRGB(animationId As Integer, frameId As Integer, red As Integer, green As Integer, blue As Integer)
Fill the specified frame with RGB color where the animation color is zero. Animation is referenced by name.
ChromaAnimationAPI.FillZeroColorRGBName(path As String, frameId As Integer, red As Integer, green As Integer, blue As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.FillZeroColorRGBNameD(path As String, frameId As Double, red As Double, green As Double, blue As Double)
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.
Dim result As Integer = ChromaAnimationAPI.Get1DColor(animationId As Integer, frameId As Integer, led As Integer)
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.
Dim result As Integer = ChromaAnimationAPI.Get1DColorName(path As String, frameId As Integer, led As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.Get1DColorNameD(path As String, frameId As Double, led As Double)
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.
Dim result As Integer = ChromaAnimationAPI.Get2DColor(animationId As Integer, frameId As Integer, row As Integer, column As Integer)
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.
Dim result As Integer = ChromaAnimationAPI.Get2DColorName(path As String, frameId As Integer, row As Integer, column As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.Get2DColorNameD(path As String, frameId As Double, row As Double, column As Double)
Get the animation id for the named animation.
Dim result As Integer = ChromaAnimationAPI.GetAnimation(name As String)
PluginGetAnimationCount
will return the number of loaded animations.
Dim result As Integer = ChromaAnimationAPI.GetAnimationCount()
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.GetAnimationD(name As String)
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.
Dim result As Integer = ChromaAnimationAPI.GetAnimationId(index As Integer)
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.
Dim result As String = ChromaAnimationAPI.GetAnimationName(animationId As Integer)
Get the current frame of the animation referenced by id.
Dim result As Integer = ChromaAnimationAPI.GetCurrentFrame(animationId As Integer)
Get the current frame of the animation referenced by name.
Dim result As Integer = ChromaAnimationAPI.GetCurrentFrameName(path As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.GetCurrentFrameNameD(path As String)
Returns the EChromaSDKDevice1DEnum
or EChromaSDKDevice2DEnum
of a Chroma
animation respective to the deviceType
, as an integer upon success. Returns
-1 upon failure.
Dim result As Integer = ChromaAnimationAPI.GetDevice(animationId As Integer)
Returns the EChromaSDKDevice1DEnum
or EChromaSDKDevice2DEnum
of a Chroma
animation respective to the deviceType
, as an integer upon success. Returns
-1 upon failure.
Dim result As Integer = ChromaAnimationAPI.GetDeviceName(path As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.GetDeviceNameD(path As String)
Returns the EChromaSDKDeviceTypeEnum
of a Chroma
animation as an integer
upon success. Returns -1 upon failure.
Dim result As Integer = ChromaAnimationAPI.GetDeviceType(animationId As Integer)
Returns the EChromaSDKDeviceTypeEnum
of a Chroma
animation as an integer
upon success. Returns -1 upon failure.
Dim result As Integer = ChromaAnimationAPI.GetDeviceTypeName(path As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.GetDeviceTypeNameD(path As String)
Gets the frame colors and duration (in seconds) for a Chroma
animation.
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
* MAX COLUMN
. Returns the animation id upon success. Returns -1 upon failure.
Dim result As Integer = ChromaAnimationAPI.GetFrame(animationId As Integer, frameIndex As Integer, ByRef duration As Single, colors As Integer(), length As Integer)
Returns the frame count of a Chroma
animation upon success. Returns -1
upon failure.
Dim result As Integer = ChromaAnimationAPI.GetFrameCount(animationId As Integer)
Returns the frame count of a Chroma
animation upon success. Returns -1
upon failure.
Dim result As Integer = ChromaAnimationAPI.GetFrameCountName(path As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.GetFrameCountNameD(path As String)
Get the color of an animation key for the given frame referenced by id.
Dim result As Integer = ChromaAnimationAPI.GetKeyColor(animationId As Integer, frameId As Integer, rzkey As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.GetKeyColorD(path As String, frameId As Double, rzkey As Double)
Get the color of an animation key for the given frame referenced by name.
Dim result As Integer = ChromaAnimationAPI.GetKeyColorName(path As String, frameId As Integer, rzkey As Integer)
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.
Dim result As Integer = ChromaAnimationAPI.GetLibraryLoadedState()
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.GetLibraryLoadedStateD()
Returns the MAX COLUMN
given the EChromaSDKDevice2DEnum
device as an
integer upon success. Returns -1 upon failure.
Dim result As Integer = ChromaAnimationAPI.GetMaxColumn(device As Device2D)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.GetMaxColumnD(device As Double)
Returns the MAX LEDS given the EChromaSDKDevice1DEnum
device as an integer
upon success. Returns -1 upon failure.
Dim result As Integer = ChromaAnimationAPI.GetMaxLeds(device As Device1D)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.GetMaxLedsD(device As Double)
Returns the MAX ROW
given the EChromaSDKDevice2DEnum
device as an integer
upon success. Returns -1 upon failure.
Dim result As Integer = ChromaAnimationAPI.GetMaxRow(device As Device2D)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.GetMaxRowD(device As Double)
PluginGetPlayingAnimationCount
will return the number of playing animations.
Dim result As Integer = 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.
Dim result As Integer = ChromaAnimationAPI.GetPlayingAnimationId(index As Integer)
Get the RGB color given red, green, and blue.
Dim result As Integer = ChromaAnimationAPI.GetRGB(red As Integer, green As Integer, blue As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.GetRGBD(red As Double, green As Double, blue As Double)
Check if the animation has loop enabled referenced by id.
Dim result As Boolean = ChromaAnimationAPI.HasAnimationLoop(animationId As Integer)
Check if the animation has loop enabled referenced by name.
Dim result As Boolean = ChromaAnimationAPI.HasAnimationLoopName(path As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.HasAnimationLoopNameD(path As String)
Initialize the ChromaSDK. Zero indicates success, otherwise failure. Many API methods auto initialize the ChromaSDK if not already initialized.
Dim result As Integer = ChromaAnimationAPI.Init()
D suffix for limited data types.
Dim result As Double = 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.
Dim result As Integer = ChromaAnimationAPI.InitSDK(ByRef appInfo As ChromaSDK.APPINFOTYPE)
Insert an animation delay by duplicating the frame by the delay number of times. Animation is referenced by id.
ChromaAnimationAPI.InsertDelay(animationId As Integer, frameId As Integer, delay As Integer)
Insert an animation delay by duplicating the frame by the delay number of times. Animation is referenced by name.
ChromaAnimationAPI.InsertDelayName(path As String, frameId As Integer, delay As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.InsertDelayNameD(path As String, frameId As Double, delay As Double)
Duplicate the source frame index at the target frame index. Animation is referenced by id.
ChromaAnimationAPI.InsertFrame(animationId As Integer, sourceFrame As Integer, targetFrame As Integer)
Duplicate the source frame index at the target frame index. Animation is referenced by name.
ChromaAnimationAPI.InsertFrameName(path As String, sourceFrame As Integer, targetFrame As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.InsertFrameNameD(path As String, sourceFrame As Double, targetFrame As Double)
Invert all the colors at the specified frame. Animation is referenced by id.
ChromaAnimationAPI.InvertColors(animationId As Integer, frameId As Integer)
Invert all the colors for all frames. Animation is referenced by id.
ChromaAnimationAPI.InvertColorsAllFrames(animationId As Integer)
Invert all the colors for all frames. Animation is referenced by name.
ChromaAnimationAPI.InvertColorsAllFramesName(path As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.InvertColorsAllFramesNameD(path As String)
Invert all the colors at the specified frame. Animation is referenced by name.
ChromaAnimationAPI.InvertColorsName(path As String, frameId As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.InvertColorsNameD(path As String, frameId As Double)
Check if the animation is paused referenced by id.
Dim result As Boolean = ChromaAnimationAPI.IsAnimationPaused(animationId As Integer)
Check if the animation is paused referenced by name.
Dim result As Boolean = ChromaAnimationAPI.IsAnimationPausedName(path As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.IsAnimationPausedNameD(path As String)
The editor dialog is a non-blocking modal window, this method returns true if the modal window is open, otherwise false.
Dim result As Boolean = ChromaAnimationAPI.IsDialogOpen()
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.IsDialogOpenD()
Returns true if the plugin has been initialized. Returns false if the plugin is uninitialized.
Dim result As Boolean = ChromaAnimationAPI.IsInitialized()
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.IsInitializedD()
If the method can be invoked the method returns true.
Dim result As Boolean = ChromaAnimationAPI.IsPlatformSupported()
D suffix for limited data types.
Dim result As Double = 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.
Dim result As Boolean = ChromaAnimationAPI.IsPlaying(animationId As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.IsPlayingD(animationId As Double)
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.
Dim result As Boolean = ChromaAnimationAPI.IsPlayingName(path As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.IsPlayingNameD(path As String)
PluginIsPlayingType
automatically handles initializing the ChromaSDK
.
If any animation is playing for the deviceType
and device
combination,
the method will return true, otherwise false.
Dim result As Boolean = ChromaAnimationAPI.IsPlayingType(deviceType As Integer, device As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.IsPlayingTypeD(deviceType As Double, device As Double)
Do a lerp math operation on a float.
Dim result As Single = ChromaAnimationAPI.Lerp(start As Single, renamed_end As Single, amt As Single)
Lerp from one color to another given t in the range 0.0 to 1.0.
Dim result As Integer = ChromaAnimationAPI.LerpColor(from As Integer, renamed_to As Integer, t As Single)
Loads Chroma
effects so that the animation can be played immediately.
Returns the animation id upon success. Returns -1 upon failure.
Dim result As Integer = ChromaAnimationAPI.LoadAnimation(animationId As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.LoadAnimationD(animationId As Double)
Load the named animation.
ChromaAnimationAPI.LoadAnimationName(path As String)
Load a composite set of animations.
ChromaAnimationAPI.LoadComposite(name As String)
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(animationId As Integer, frameCount As Integer, duration As Single, color As Integer)
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(path As String, frameCount As Integer, duration As Single, color As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.MakeBlankFramesNameD(path As String, frameCount As Double, duration As Double, color As Double)
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(animationId As Integer, frameCount As Integer, duration As Single)
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(animationId As Integer, frameCount As Integer, duration As Single)
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(path As String, frameCount As Integer, duration As Single)
MakeBlankFramesRandomBlackAndWhiteNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.MakeBlankFramesRandomBlackAndWhiteNameD(path As String, frameCount As Double, duration As Double)
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(path As String, frameCount As Integer, duration As Single)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.MakeBlankFramesRandomNameD(path As String, frameCount As Double, duration As Double)
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(animationId As Integer, frameCount As Integer, duration As Single, red As Integer, green As Integer, blue As Integer)
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(path As String, frameCount As Integer, duration As Single, red As Integer, green As Integer, blue As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.MakeBlankFramesRGBNameD(path As String, frameCount As Double, duration As Double, red As Double, green As Double, blue As Double)
Flips the color grid horizontally for all Chroma
animation frames. Returns
the animation id upon success. Returns -1 upon failure.
Dim result As Integer = ChromaAnimationAPI.MirrorHorizontally(animationId As Integer)
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 -1 upon failure.
Dim result As Integer = ChromaAnimationAPI.MirrorVertically(animationId As Integer)
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(animationId As Integer, color1 As Integer, color2 As Integer)
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(path As String, color1 As Integer, color2 As Integer)
MultiplyColorLerpAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.MultiplyColorLerpAllFramesNameD(path As String, color1 As Double, color2 As Double)
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(animationId As Integer, frameId As Integer, intensity As Single)
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(animationId As Integer, intensity As Single)
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(path As String, intensity As Single)
MultiplyIntensityAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.MultiplyIntensityAllFramesNameD(path As String, intensity As Double)
Multiply all frames by the RBG color intensity. Animation is referenced by id.
ChromaAnimationAPI.MultiplyIntensityAllFramesRGB(animationId As Integer, red As Integer, green As Integer, blue As Integer)
MultiplyIntensityAllFramesRGBName
Multiply all frames by the RBG color intensity. Animation is referenced by name.
ChromaAnimationAPI.MultiplyIntensityAllFramesRGBName(path As String, red As Integer, green As Integer, blue As Integer)
MultiplyIntensityAllFramesRGBNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.MultiplyIntensityAllFramesRGBNameD(path As String, red As Double, green As Double, blue As Double)
Multiply the specific frame by the RBG color intensity. Animation is referenced by id.
ChromaAnimationAPI.MultiplyIntensityColor(animationId As Integer, frameId As Integer, color As Integer)
MultiplyIntensityColorAllFrames
Multiply all frames by the RBG color intensity. Animation is referenced by id.
ChromaAnimationAPI.MultiplyIntensityColorAllFrames(animationId As Integer, color As Integer)
MultiplyIntensityColorAllFramesName
Multiply all frames by the RBG color intensity. Animation is referenced by name.
ChromaAnimationAPI.MultiplyIntensityColorAllFramesName(path As String, color As Integer)
MultiplyIntensityColorAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.MultiplyIntensityColorAllFramesNameD(path As String, color As Double)
Multiply the specific frame by the RBG color intensity. Animation is referenced by name.
ChromaAnimationAPI.MultiplyIntensityColorName(path As String, frameId As Integer, color As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.MultiplyIntensityColorNameD(path As String, frameId As Double, color As Double)
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(path As String, frameId As Integer, intensity As Single)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.MultiplyIntensityNameD(path As String, frameId As Double, intensity As Double)
Multiply the specific frame by the RBG color intensity. Animation is referenced by id.
ChromaAnimationAPI.MultiplyIntensityRGB(animationId As Integer, frameId As Integer, red As Integer, green As Integer, blue As Integer)
Multiply the specific frame by the RBG color intensity. Animation is referenced by name.
ChromaAnimationAPI.MultiplyIntensityRGBName(path As String, frameId As Integer, red As Integer, green As Integer, blue As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.MultiplyIntensityRGBNameD(path As String, frameId As Double, red As Double, green As Double, blue As Double)
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(animationId As Integer, frameId As Integer, color1 As Integer, color2 As Integer)
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(animationId As Integer, color1 As Integer, color2 As Integer)
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(path As String, color1 As Integer, color2 As Integer)
MultiplyNonZeroTargetColorLerpAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.MultiplyNonZeroTargetColorLerpAllFramesNameD(path As String, color1 As Double, color2 As Double)
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(animationId As Integer, red1 As Integer, green1 As Integer, blue1 As Integer, red2 As Integer, green2 As Integer, blue2 As Integer)
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(path As String, red1 As Integer, green1 As Integer, blue1 As Integer, red2 As Integer, green2 As Integer, blue2 As Integer)
MultiplyNonZeroTargetColorLerpAllFramesRGBNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.MultiplyNonZeroTargetColorLerpAllFramesRGBNameD(path As String, red1 As Double, green1 As Double, blue1 As Double, red2 As Double, green2 As Double, blue2 As Double)
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(animationId As Integer, frameId As Integer, color1 As Integer, color2 As Integer)
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(animationId As Integer, color1 As Integer, color2 As Integer)
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(path As String, color1 As Integer, color2 As Integer)
MultiplyTargetColorLerpAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.MultiplyTargetColorLerpAllFramesNameD(path As String, color1 As Double, color2 As Double)
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(animationId As Integer, red1 As Integer, green1 As Integer, blue1 As Integer, red2 As Integer, green2 As Integer, blue2 As Integer)
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(path As String, red1 As Integer, green1 As Integer, blue1 As Integer, red2 As Integer, green2 As Integer, blue2 As Integer)
MultiplyTargetColorLerpAllFramesRGBNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.MultiplyTargetColorLerpAllFramesRGBNameD(path As String, red1 As Double, green1 As Double, blue1 As Double, red2 As Double, green2 As Double, blue2 As Double)
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(path As String, frameId As Integer, color1 As Integer, color2 As Integer)
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(animationId As Integer, frameId As Integer, red As Integer, green As Integer, blue As Integer)
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(animationId As Integer, red As Integer, green As Integer, blue As Integer)
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(path As String, red As Integer, green As Integer, blue As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.OffsetColorsAllFramesNameD(path As String, red As Double, green As Double, blue As Double)
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(path As String, frameId As Integer, red As Integer, green As Integer, blue As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.OffsetColorsNameD(path As String, frameId As Double, red As Double, green As Double, blue As Double)
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(animationId As Integer, frameId As Integer, red As Integer, green As Integer, blue As Integer)
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(animationId As Integer, red As Integer, green As Integer, blue As Integer)
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(path As String, red As Integer, green As Integer, blue As Integer)
OffsetNonZeroColorsAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.OffsetNonZeroColorsAllFramesNameD(path As String, red As Double, green As Double, blue As Double)
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(path As String, frameId As Integer, red As Integer, green As Integer, blue As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.OffsetNonZeroColorsNameD(path As String, frameId As Double, red As Double, green As Double, blue As Double)
Opens a Chroma
animation file so that it can be played. Returns an animation
id >= 0 upon success. Returns -1 if there was a failure. The animation
id is used in most of the API methods.
Dim result As Integer = ChromaAnimationAPI.OpenAnimation(path As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.OpenAnimationD(path As String)
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 -1 if there was a failure. The animation id is used
in most of the API methods.
Dim result As Integer = ChromaAnimationAPI.OpenAnimationFromMemory(data As Byte(), name As String)
Opens a Chroma
animation file with the .chroma
extension. Returns zero
upon success. Returns -1 if there was a failure.
Dim result As Integer = ChromaAnimationAPI.OpenEditorDialog(path As String)
Open the named animation in the editor dialog and play the animation at start.
Dim result As Integer = ChromaAnimationAPI.OpenEditorDialogAndPlay(path As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.OpenEditorDialogAndPlayD(path As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.OpenEditorDialogD(path As String)
Sets the duration
for all grames in the Chroma
animation to the duration
parameter. Returns the animation id upon success. Returns -1 upon failure.
Dim result As Integer = ChromaAnimationAPI.OverrideFrameDuration(animationId As Integer, duration As Single)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.OverrideFrameDurationD(animationId As Double, duration As Double)
Override the duration of all frames with the duration
value. Animation
is referenced by name.
ChromaAnimationAPI.OverrideFrameDurationName(path As String, duration As Single)
Pause the current animation referenced by id.
ChromaAnimationAPI.PauseAnimation(animationId As Integer)
Pause the current animation referenced by name.
ChromaAnimationAPI.PauseAnimationName(path As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.PauseAnimationNameD(path As String)
Plays the Chroma
animation. This will load the animation, if not loaded
previously. Returns the animation id upon success. Returns -1 upon failure.
Dim result As Integer = ChromaAnimationAPI.PlayAnimation(animationId As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.PlayAnimationD(animationId As Double)
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(animationId As Integer, frameId As Integer, renamed_loop As Boolean)
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(path As String, frameId As Integer, renamed_loop As Boolean)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.PlayAnimationFrameNameD(path As String, frameId As Double, renamed_loop As Double)
PluginPlayAnimationLoop
automatically handles initializing the ChromaSDK
.
The method will play the animation given the animationId
with looping
on
or off
.
ChromaAnimationAPI.PlayAnimationLoop(animationId As Integer, renamed_loop As Boolean)
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(path As String, renamed_loop As Boolean)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.PlayAnimationNameD(path As String, renamed_loop As Double)
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(name As String, renamed_loop As Boolean)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.PlayCompositeD(name As String, renamed_loop As Double)
Displays the Chroma
animation frame on Chroma
hardware given the frameIndex
.
Returns the animation id upon success. Returns -1 upon failure.
Dim result As Integer = ChromaAnimationAPI.PreviewFrame(animationId As Integer, frameIndex As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.PreviewFrameD(animationId As Double, frameIndex As Double)
Displays the Chroma
animation frame on Chroma
hardware given the frameIndex
.
Animaton is referenced by name.
ChromaAnimationAPI.PreviewFrameName(path As String, frameIndex As Integer)
Reduce the frames of the animation by removing every nth element. Animation is referenced by id.
ChromaAnimationAPI.ReduceFrames(animationId As Integer, n As Integer)
Reduce the frames of the animation by removing every nth element. Animation is referenced by name.
ChromaAnimationAPI.ReduceFramesName(path As String, n As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.ReduceFramesNameD(path As String, n As Double)
Resets the Chroma
animation to 1 blank frame. Returns the animation id
upon success. Returns -1 upon failure.
Dim result As Integer = ChromaAnimationAPI.ResetAnimation(animationId As Integer)
Resume the animation with loop ON
or OFF
referenced by id.
ChromaAnimationAPI.ResumeAnimation(animationId As Integer, renamed_loop As Boolean)
Resume the animation with loop ON
or OFF
referenced by name.
ChromaAnimationAPI.ResumeAnimationName(path As String, renamed_loop As Boolean)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.ResumeAnimationNameD(path As String, renamed_loop As Double)
Reverse the animation frame order of the Chroma
animation. Returns the
animation id upon success. Returns -1 upon failure. Animation is referenced
by id.
Dim result As Integer = ChromaAnimationAPI.Reverse(animationId As Integer)
Reverse the animation frame order of the Chroma
animation. Animation is
referenced by id.
ChromaAnimationAPI.ReverseAllFrames(animationId As Integer)
Reverse the animation frame order of the Chroma
animation. Animation is
referenced by name.
ChromaAnimationAPI.ReverseAllFramesName(path As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.ReverseAllFramesNameD(path As String)
Save the animation referenced by id to the path specified.
Dim result As Integer = ChromaAnimationAPI.SaveAnimation(animationId As Integer, path As String)
Save the named animation to the target path specified.
Dim result As Integer = ChromaAnimationAPI.SaveAnimationName(sourceAnimation As String, targetAnimation As String)
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(animationId As Integer, frameId As Integer, led As Integer, color As Integer)
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(path As String, frameId As Integer, led As Integer, color As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.Set1DColorNameD(path As String, frameId As Double, led As Double, color As Double)
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(animationId As Integer, frameId As Integer, row As Integer, column As Integer, color As Integer)
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(path As String, frameId As Integer, row As Integer, column As Integer, color As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.Set2DColorNameD(path As String, frameId As Double, rowColumnIndex As Double, color As Double)
When custom color is set, the custom key mode will be used. The animation is referenced by id.
ChromaAnimationAPI.SetChromaCustomColorAllFrames(animationId As Integer)
SetChromaCustomColorAllFramesName
When custom color is set, the custom key mode will be used. The animation is referenced by name.
ChromaAnimationAPI.SetChromaCustomColorAllFramesName(path As String)
SetChromaCustomColorAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.SetChromaCustomColorAllFramesNameD(path As String)
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(animationId As Integer, flag As Boolean)
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(path As String, flag As Boolean)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.SetChromaCustomFlagNameD(path As String, flag As Double)
Set the current frame of the animation referenced by id.
ChromaAnimationAPI.SetCurrentFrame(animationId As Integer, frameId As Integer)
Set the current frame of the animation referenced by name.
ChromaAnimationAPI.SetCurrentFrameName(path As String, frameId As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.SetCurrentFrameNameD(path As String, frameId As Double)
Set the custom alpha flag on the color array
Dim result As Integer = ChromaAnimationAPI.SetCustomColorFlag2D(device As Integer, colors As Integer())
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 -1 upon failure.
Dim result As Integer = ChromaAnimationAPI.SetDevice(animationId As Integer, deviceType As Integer, device As Integer)
SetEffect will display the referenced effect id.
Dim result As Integer = ChromaAnimationAPI.SetEffect(effectId As Guid)
SetEffectCustom1D will display the referenced colors immediately
Dim result As Integer = ChromaAnimationAPI.SetEffectCustom1D(device As Integer, colors As Integer())
SetEffectCustom2D will display the referenced colors immediately
Dim result As Integer = ChromaAnimationAPI.SetEffectCustom2D(device As Integer, colors As Integer())
SetEffectKeyboardCustom2D will display the referenced custom keyboard colors immediately
Dim result As Integer = ChromaAnimationAPI.SetEffectKeyboardCustom2D(device As Integer, colors As Integer())
When the idle animation is used, the named animation will play when no other animations are playing. Reference the animation by id.
ChromaAnimationAPI.SetIdleAnimation(animationId As Integer)
When the idle animation is used, the named animation will play when no other animations are playing. Reference the animation by name.
ChromaAnimationAPI.SetIdleAnimationName(path As String)
Set animation key to a static color for the given frame.
ChromaAnimationAPI.SetKeyColor(animationId As Integer, frameId As Integer, rzkey As Integer, color As Integer)
Set the key to the specified key color for all frames. Animation is referenced by id.
ChromaAnimationAPI.SetKeyColorAllFrames(animationId As Integer, rzkey As Integer, color As Integer)
Set the key to the specified key color for all frames. Animation is referenced by name.
ChromaAnimationAPI.SetKeyColorAllFramesName(path As String, rzkey As Integer, color As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.SetKeyColorAllFramesNameD(path As String, rzkey As Double, color As Double)
Set the key to the specified key color for all frames. Animation is referenced by id.
ChromaAnimationAPI.SetKeyColorAllFramesRGB(animationId As Integer, rzkey As Integer, red As Integer, green As Integer, blue As Integer)
Set the key to the specified key color for all frames. Animation is referenced by name.
ChromaAnimationAPI.SetKeyColorAllFramesRGBName(path As String, rzkey As Integer, red As Integer, green As Integer, blue As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.SetKeyColorAllFramesRGBNameD(path As String, rzkey As Double, red As Double, green As Double, blue As Double)
Set animation key to a static color for the given frame.
ChromaAnimationAPI.SetKeyColorName(path As String, frameId As Integer, rzkey As Integer, color As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.SetKeyColorNameD(path As String, frameId As Double, rzkey As Double, color As Double)
Set the key to the specified key color for the specified frame. Animation is referenced by id.
ChromaAnimationAPI.SetKeyColorRGB(animationId As Integer, frameId As Integer, rzkey As Integer, red As Integer, green As Integer, blue As Integer)
Set the key to the specified key color for the specified frame. Animation is referenced by name.
ChromaAnimationAPI.SetKeyColorRGBName(path As String, frameId As Integer, rzkey As Integer, red As Integer, green As Integer, blue As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.SetKeyColorRGBNameD(path As String, frameId As Double, rzkey As Double, red As Double, green As Double, blue As Double)
Set animation key to a static color for the given frame if the existing color is not already black.
ChromaAnimationAPI.SetKeyNonZeroColor(animationId As Integer, frameId As Integer, rzkey As Integer, color As Integer)
Set animation key to a static color for the given frame if the existing color is not already black.
ChromaAnimationAPI.SetKeyNonZeroColorName(path As String, frameId As Integer, rzkey As Integer, color As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.SetKeyNonZeroColorNameD(path As String, frameId As Double, rzkey As Double, color As Double)
Set the key to the specified key color for the specified frame where color is not black. Animation is referenced by id.
ChromaAnimationAPI.SetKeyNonZeroColorRGB(animationId As Integer, frameId As Integer, rzkey As Integer, red As Integer, green As Integer, blue As Integer)
Set the key to the specified key color for the specified frame where color is not black. Animation is referenced by name.
ChromaAnimationAPI.SetKeyNonZeroColorRGBName(path As String, frameId As Integer, rzkey As Integer, red As Integer, green As Integer, blue As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.SetKeyNonZeroColorRGBNameD(path As String, frameId As Double, rzkey As Double, red As Double, green As Double, blue As Double)
Set animation key by row and column to a static color for the given frame.
ChromaAnimationAPI.SetKeyRowColumnColorName(path As String, frameId As Integer, row As Integer, column As Integer, color As Integer)
Set an array of animation keys to a static color for the given frame. Animation is referenced by id.
ChromaAnimationAPI.SetKeysColor(animationId As Integer, frameId As Integer, rzkeys As Integer(), keyCount As Integer, color As Integer)
Set an array of animation keys to a static color for all frames. Animation is referenced by id.
ChromaAnimationAPI.SetKeysColorAllFrames(animationId As Integer, rzkeys As Integer(), keyCount As Integer, color As Integer)
Set an array of animation keys to a static color for all frames. Animation is referenced by name.
ChromaAnimationAPI.SetKeysColorAllFramesName(path As String, rzkeys As Integer(), keyCount As Integer, color As Integer)
Set an array of animation keys to a static color for all frames. Animation is referenced by id.
ChromaAnimationAPI.SetKeysColorAllFramesRGB(animationId As Integer, rzkeys As Integer(), keyCount As Integer, red As Integer, green As Integer, blue As Integer)
Set an array of animation keys to a static color for all frames. Animation is referenced by name.
ChromaAnimationAPI.SetKeysColorAllFramesRGBName(path As String, rzkeys As Integer(), keyCount As Integer, red As Integer, green As Integer, blue As Integer)
Set an array of animation keys to a static color for the given frame.
ChromaAnimationAPI.SetKeysColorName(path As String, frameId As Integer, rzkeys As Integer(), keyCount As Integer, color As Integer)
Set an array of animation keys to a static color for the given frame. Animation is referenced by id.
ChromaAnimationAPI.SetKeysColorRGB(animationId As Integer, frameId As Integer, rzkeys As Integer(), keyCount As Integer, red As Integer, green As Integer, blue As Integer)
Set an array of animation keys to a static color for the given frame. Animation is referenced by name.
ChromaAnimationAPI.SetKeysColorRGBName(path As String, frameId As Integer, rzkeys As Integer(), keyCount As Integer, red As Integer, green As Integer, blue As Integer)
Set an array of animation keys to a static color for the given frame if the existing color is not already black.
ChromaAnimationAPI.SetKeysNonZeroColor(animationId As Integer, frameId As Integer, rzkeys As Integer(), keyCount As Integer, color As Integer)
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(animationId As Integer, rzkeys As Integer(), keyCount As Integer, color As Integer)
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(path As String, rzkeys As Integer(), keyCount As Integer, color As Integer)
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(path As String, frameId As Integer, rzkeys As Integer(), keyCount As Integer, color As Integer)
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(animationId As Integer, frameId As Integer, rzkeys As Integer(), keyCount As Integer, red As Integer, green As Integer, blue As Integer)
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(path As String, frameId As Integer, rzkeys As Integer(), keyCount As Integer, red As Integer, green As Integer, blue As Integer)
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(animationId As Integer, frameId As Integer, rzkeys As Integer(), keyCount As Integer, color As Integer)
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(animationId As Integer, rzkeys As Integer(), keyCount As Integer, color As Integer)
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(path As String, rzkeys As Integer(), keyCount As Integer, color As Integer)
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(animationId As Integer, rzkeys As Integer(), keyCount As Integer, red As Integer, green As Integer, blue As Integer)
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(path As String, rzkeys As Integer(), keyCount As Integer, red As Integer, green As Integer, blue As Integer)
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(path As String, frameId As Integer, rzkeys As Integer(), keyCount As Integer, color As Integer)
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(animationId As Integer, frameId As Integer, rzkeys As Integer(), keyCount As Integer, red As Integer, green As Integer, blue As Integer)
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(path As String, frameId As Integer, rzkeys As Integer(), keyCount As Integer, red As Integer, green As Integer, blue As Integer)
Set animation key to a static color for the given frame where the color is black. Animation is referenced by id.
ChromaAnimationAPI.SetKeyZeroColor(animationId As Integer, frameId As Integer, rzkey As Integer, color As Integer)
Set animation key to a static color for the given frame where the color is black. Animation is referenced by name.
ChromaAnimationAPI.SetKeyZeroColorName(path As String, frameId As Integer, rzkey As Integer, color As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.SetKeyZeroColorNameD(path As String, frameId As Double, rzkey As Double, color As Double)
Set animation key to a static color for the given frame where the color is black. Animation is referenced by id.
ChromaAnimationAPI.SetKeyZeroColorRGB(animationId As Integer, frameId As Integer, rzkey As Integer, red As Integer, green As Integer, blue As Integer)
Set animation key to a static color for the given frame where the color is black. Animation is referenced by name.
ChromaAnimationAPI.SetKeyZeroColorRGBName(path As String, frameId As Integer, rzkey As Integer, red As Integer, green As Integer, blue As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.SetKeyZeroColorRGBNameD(path As String, frameId As Double, rzkey As Double, red As Double, green As Double, blue As Double)
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(fp As IntPtr)
Sets the target device to the static color.
ChromaAnimationAPI.SetStaticColor(deviceType As Integer, device As Integer, color As Integer)
Sets all devices to the static color.
ChromaAnimationAPI.SetStaticColorAll(color As Integer)
Sets the target device to the static color.
ChromaAnimationAPI.StaticColor(deviceType As Integer, device As Integer, color As Integer)
Sets all devices to the static color.
ChromaAnimationAPI.StaticColorAll(color As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.StaticColorD(deviceType As Double, device As Double, color As Double)
PluginStopAll
will automatically stop all animations that are playing.
ChromaAnimationAPI.StopAll()
Stops animation playback if in progress. Returns the animation id upon success. Returns -1 upon failure.
Dim result As Integer = ChromaAnimationAPI.StopAnimation(animationId As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.StopAnimationD(animationId As Double)
PluginStopAnimationName
automatically handles initializing the ChromaSDK
.
The named .chroma
animation file will be automatically opened. The animation
will stop if playing.
ChromaAnimationAPI.StopAnimationName(path As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.StopAnimationNameD(path As String)
PluginStopAnimationType
automatically handles initializing the ChromaSDK
.
If any animation is playing for the deviceType
and device
combination,
it will be stopped.
ChromaAnimationAPI.StopAnimationType(deviceType As Integer, device As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.StopAnimationTypeD(deviceType As Double, device As Double)
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(name As String)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.StopCompositeD(name As String)
Return color1 - color2
Dim result As Integer = ChromaAnimationAPI.SubtractColor(color1 As Integer, color2 As Integer)
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(sourceAnimationId As Integer, targetAnimationId As Integer)
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(sourceAnimation As String, targetAnimation As String)
SubtractNonZeroAllKeysAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.SubtractNonZeroAllKeysAllFramesNameD(sourceAnimation As String, targetAnimation As String)
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(sourceAnimationId As Integer, targetAnimationId As Integer, offset As Integer)
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(sourceAnimation As String, targetAnimation As String, offset As Integer)
SubtractNonZeroAllKeysAllFramesOffsetNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.SubtractNonZeroAllKeysAllFramesOffsetNameD(sourceAnimation As String, targetAnimation As String, offset As Double)
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(sourceAnimationId As Integer, targetAnimationId As Integer, frameId As Integer, offset As Integer)
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(sourceAnimation As String, targetAnimation As String, frameId As Integer, offset As Integer)
SubtractNonZeroAllKeysOffsetNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.SubtractNonZeroAllKeysOffsetNameD(sourceAnimation As String, targetAnimation As String, frameId As Double, offset As Double)
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(sourceAnimationId As Integer, targetAnimationId As Integer)
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(sourceAnimation As String, targetAnimation As String)
SubtractNonZeroTargetAllKeysAllFramesNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.SubtractNonZeroTargetAllKeysAllFramesNameD(sourceAnimation As String, targetAnimation As String)
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(sourceAnimationId As Integer, targetAnimationId As Integer, offset As Integer)
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(sourceAnimation As String, targetAnimation As String, offset As Integer)
SubtractNonZeroTargetAllKeysAllFramesOffsetNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.SubtractNonZeroTargetAllKeysAllFramesOffsetNameD(sourceAnimation As String, targetAnimation As String, offset As Double)
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(sourceAnimationId As Integer, targetAnimationId As Integer, frameId As Integer, offset As Integer)
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(sourceAnimation As String, targetAnimation As String, frameId As Integer, offset As Integer)
SubtractNonZeroTargetAllKeysOffsetNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.SubtractNonZeroTargetAllKeysOffsetNameD(sourceAnimation As String, targetAnimation As String, frameId As Double, offset As Double)
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(animationId As Integer, minThreshold As Integer, minRed As Integer, minGreen As Integer, minBlue As Integer, maxThreshold As Integer, maxRed As Integer, maxGreen As Integer, maxBlue As Integer)
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(path As String, minThreshold As Integer, minRed As Integer, minGreen As Integer, minBlue As Integer, maxThreshold As Integer, maxRed As Integer, maxGreen As Integer, maxBlue As Integer)
SubtractThresholdColorsMinMaxAllFramesRGBNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.SubtractThresholdColorsMinMaxAllFramesRGBNameD(path As String, minThreshold As Double, minRed As Double, minGreen As Double, minBlue As Double, maxThreshold As Double, maxRed As Double, maxGreen As Double, maxBlue As Double)
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(animationId As Integer, frameId As Integer, minThreshold As Integer, minRed As Integer, minGreen As Integer, minBlue As Integer, maxThreshold As Integer, maxRed As Integer, maxGreen As Integer, maxBlue As Integer)
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(path As String, frameId As Integer, minThreshold As Integer, minRed As Integer, minGreen As Integer, minBlue As Integer, maxThreshold As Integer, maxRed As Integer, maxGreen As Integer, maxBlue As Integer)
SubtractThresholdColorsMinMaxRGBNameD
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.SubtractThresholdColorsMinMaxRGBNameD(path As String, frameId As Integer, minThreshold As Integer, minRed As Integer, minGreen As Integer, minBlue As Integer, maxThreshold As Integer, maxRed As Integer, maxGreen As Integer, maxBlue As Integer)
Trim the end of the animation. The length of the animation will be the lastFrameId
-
- Reference the animation by id.
ChromaAnimationAPI.TrimEndFrames(animationId As Integer, lastFrameId As Integer)
Trim the end of the animation. The length of the animation will be the lastFrameId
-
- Reference the animation by name.
ChromaAnimationAPI.TrimEndFramesName(path As String, lastFrameId As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.TrimEndFramesNameD(path As String, lastFrameId As Double)
Remove the frame from the animation. Reference animation by id.
ChromaAnimationAPI.TrimFrame(animationId As Integer, frameId As Integer)
Remove the frame from the animation. Reference animation by name.
ChromaAnimationAPI.TrimFrameName(path As String, frameId As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.TrimFrameNameD(path As String, frameId As Double)
Trim the start of the animation starting at frame 0 for the number of frames. Reference the animation by id.
ChromaAnimationAPI.TrimStartFrames(animationId As Integer, numberOfFrames As Integer)
Trim the start of the animation starting at frame 0 for the number of frames. Reference the animation by name.
ChromaAnimationAPI.TrimStartFramesName(path As String, numberOfFrames As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.TrimStartFramesNameD(path As String, numberOfFrames As Double)
Uninitializes the ChromaSDK
. Returns 0 upon success. Returns -1 upon failure.
Dim result As Integer = ChromaAnimationAPI.Uninit()
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.UninitD()
Unloads Chroma
effects to free up resources. Returns the animation id
upon success. Returns -1 upon failure. Reference the animation by id.
Dim result As Integer = ChromaAnimationAPI.UnloadAnimation(animationId As Integer)
D suffix for limited data types.
Dim result As Double = ChromaAnimationAPI.UnloadAnimationD(animationId As Double)
Unload the animation effects. Reference the animation by name.
ChromaAnimationAPI.UnloadAnimationName(path As String)
Unload the the composite set of animation effects. Reference the animation by name.
ChromaAnimationAPI.UnloadComposite(name As String)
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 frameIndex
of 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
MAX COLUMN
. Returns the animation id upon success. Returns -1 upon failure.
Dim result As Integer = ChromaAnimationAPI.UpdateFrame(animationId As Integer, frameIndex As Integer, duration As Single, colors As Integer(), length As Integer)
Updates the frameIndex
of 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
MAX COLUMN
. Returns the animation id upon success. Returns -1 upon failure.
Dim result As Integer = ChromaAnimationAPI.UpdateFrameName(path As String, frameIndex As Integer, duration As Single, colors As Integer(), length As Integer)
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(device As Integer, flag As Boolean)
Set idle animation flag for all devices.
ChromaAnimationAPI.UseIdleAnimations(flag As Boolean)
Set preloading animation flag, which is set to true by default. Reference animation by id.
ChromaAnimationAPI.UsePreloading(animationId As Integer, flag As Boolean)
Set preloading animation flag, which is set to true by default. Reference animation by name.
ChromaAnimationAPI.UsePreloadingName(path As String, flag As Boolean)