The Corsair User Forums  

Go Back   The Corsair User Forums > Corsair Product Discussion > Keyboards and Mice

Notices

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 11-23-2014, 01:28 PM
Vanefanel Vanefanel is offline
Registered User
 
Join Date: Nov 2014
Posts: 2
POST ID # = 743247
Vanefanel Reputation: 10
Default Additional JSON-Language for programing keyboard colors

Hi everyone,

I am a huge fan of the RGB-keyboards and very interested in writing programs and animations.
When I started to handle my keyboard I'm was very sad about the windows program to write the color-animation.
So I decided to write my own program and define my own syntax to handle the color effects of my keyboard.

The solution is know in a first presentable state and I published it on github:

You can find it on https://github.com/VanFanelia/CorsairColorManager .

The following code is an example rainbow fade program (Keys: “WASD”):
Code:
{
    "colorMixingRule": "OVERRIDE",
    "startAction" : "fromBlue",
    "rules": [
        {
            "type": "HSVColorChange",
            "delay": 0,
            "startColor": "0000ffff",
            "endColor": "ffff00ff",
            "duration": 2500,
            "alias": "fromBlue",
            "keys": ["W","A","S","D"],
            "doAfter" :  ["toBlue"]
        },
        {
            "type": "HSVColorChange",
            "delay": 0,
            "startColor": "ffff00ff",
            "endColor": "0000ffff",
            "duration": 2500,
            "alias": "toBlue",
            "keys": ["W","A","S","D"],
            "doAfter" :  ["fromBlue"]
        }
    ]
}
Here is an example of the animation:

In the future I plan to create more rules to make standard animations easier for everyone to use.
Currently only the settings of colors and color fading between to colors is implemented.
In the future I want to have standard rules for moving and or keydown events.

I hope this project will help some people to create more and better animations.

greetings
Van

Edit: added link to youtube demo video

Last edited by Vanefanel; 11-23-2014 at 01:55 PM.
Reply With Quote


  #2  
Old 11-23-2014, 09:38 PM
Skinlo Skinlo is offline
Registered User
 
Join Date: Nov 2014
Posts: 11
POST ID # = 743293
Skinlo Reputation: 10
Default

Good job, I'd be interested in seeing some more videos with different effects! :)
Reply With Quote


  #3  
Old 11-24-2014, 06:41 PM
Vanefanel Vanefanel is offline
Registered User
 
Join Date: Nov 2014
Posts: 2
POST ID # = 743441
Vanefanel Reputation: 10
Default

Today i added the layout for englisch keyboards. You can start the program with an additional parameter to switch between germany (DE) or englisch (EN) K70RGB keys.

I haven't got an englisch keyboard, so i cannot test it.

On github is now a description of the first 3 color rules.
Reply With Quote


Reply

Tags
json, k70rgb driver, linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:42 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.