These are chat archives for CoraleStudios/Colore

20th
Feb 2017
Jared J.
@jjensn
Feb 20 2017 17:14
What's up
Anyone here
Adam Hellberg
@Sharparam
Feb 20 2017 17:15
yeah
Jared J.
@jjensn
Feb 20 2017 17:15
What's up man
Does Colore have functions like fade
I am using it to set colors now but does it come with a way to fade the keys or any nifty attributes
Adam Hellberg
@Sharparam
Feb 20 2017 17:16
you'd have to implement your own functions for that. we don't currently include any builtin functions (other than endpoints for the effects implemented in the SDK)
Jared J.
@jjensn
Feb 20 2017 17:16
I didn't see anything in the docs
I saw there was a star light mentioned in the commit history so is why I asked
Thanks a lot !
Adam Hellberg
@Sharparam
Feb 20 2017 17:17
there has been talk about adding support for an XML-like effect definition language to make such things easier but it's still quite a ways to go
starlight exists in the SDK but it seems to not work at the moment :/
last i tried anyway
if you need code samples for fading effects et.c i think there are some people in here that have done them in the past, if they notice the messages :P
@njbmartin probably knows more
Jared J.
@jjensn
Feb 20 2017 17:19
Maybe I can use chromasync to do the fancy effects
Jared J.
@jjensn
Feb 20 2017 17:25
One last thing before I go, sorry to take your time
Should I check to see if the key(s) are already set the color I want before setting them
or is it acceptable to just update the key colors every 300ms
even if they are going to be the same
Adam Hellberg
@Sharparam
Feb 20 2017 17:34
it probably doesn't save that much performance to check first
every 300ms is a pretty big delay in this context so you can just set the colors to make it simpler
depending on how you update the grid it will send an update to the sdk on every color set, so if you start setting colors with smaller delays it can become a good idea to check first. or have your own instance of a grid that you do updates on and then send the entire grid as one update
DoomZ
@DoomZTheOne_twitter
Feb 20 2017 17:51
I was wondering, if I want to make a transition of color (I don't know why it's not available in synapse because when you change the static color it do it...) do I just set one color, after a delay another one and etc or I need to do something else? Thank you ^^
Adam Hellberg
@Sharparam
Feb 20 2017 17:56
if you want to manually transition a color then yes, you'll need to implement your own code to gradually change the color from one to another
it only does it automatically when switching between built-in functions, iirc
DoomZ
@DoomZTheOne_twitter
Feb 20 2017 17:59
Do you know with what function I could do it?
Adam Hellberg
@Sharparam
Feb 20 2017 18:01
depends on where you use the code, WinForms and WPF for example have their own specialized timer classes to integrate with UI threads and the like. but you'd have a start color, then every 1ms or so you change it a little bit towards the target color and set that new color. eventually it reaches the target color and the transition is complete. so several calls to Keyboard[someKey] = newColor; with delays in between each call to it
DoomZ
@DoomZTheOne_twitter
Feb 20 2017 18:02
Alright thank you :) I'll try that when I get home