These are chat archives for CoraleStudios/Colore

18th
Oct 2015
Dariusz Niemczyk
@Palid
Oct 18 2015 11:32
Guys, any chances for real examples? Docs aren't telling a lot for me (I'm a JS dev daily).
Dariusz Niemczyk
@Palid
Oct 18 2015 12:33
I see that even Custom effect doesn't really allow for anything more than just setKeys.
Any chances that we'll be able to build custom animations like Synapse Chroma Configurator allows us at the moment? For instance, reactive only specific buttons and stuff.
For the moment I can only set the fancy effects for whole keyboard and normal leds for only keys, which really sucks for my idea - I'd need to at least control brightness so I'll be able to do the animation manually.
If that won't be implemented in the neartime please tell me, I'll just use your wrapper for native lib calls..
Adam Hellberg
@Sharparam
Oct 18 2015 12:39

@Palid
Creating custom animations is done by implementing your own algorithms manipulating the keys (a reactive effect for certain keys could listen for key presses and activate the pressed key with a certain color, and then fade the color out over time), it's possible we may add some additional effect algorithms to Colore in the future if they prove to be widely used enough to warrant a central implementation, but it's not something we currently have planned.

Brightness (the kind that can be set through Synapse and the keyboard hotkeys) can currently not be controlled through the SDK. The closest approximation would be to make colors darker/brighter, this doesn't expose the full control of brightness but that will not be possible until Razer implements it in their SDK.

Regarding example apps we are going to add some once the current workload is lower.

Dariusz Niemczyk
@Palid
Oct 18 2015 12:42
@Sharparam thanks for fast response. I still haven't figured out how to fade out the color, if the brightness is not implemented in the SDK.
Well, Chroma Visualiser somehow does controll the brightness. Does it mean it skips SDK?
Adam Hellberg
@Sharparam
Oct 18 2015 12:43
Not sure. It's possible Synapse has access to additional functions that are not (yet, anyway) exposed in the public SDK
the brightness sliders for chroma devices in synapse for example, are able to control stuff on the devices that we cannot do with the SDK
Dariusz Niemczyk
@Palid
Oct 18 2015 12:45
https://insider.razerzone.com/index.php?threads/rock-your-razer-chroma-devices-with-the-audio-visualizer.8796/ - I'll just go and ask the dev myself tomorrow. Maybe there's some magical hidden stuff in the SDK nobody knows about. ;)
Adam Hellberg
@Sharparam
Oct 18 2015 12:45
fading colors would be done by having some kind of timer ticking relatively fast and for each tick making the color closer to dark. as for making it closer to dark, i'd go look at stackoverflow. I haven't dabbled much in RGB color manipulation but last i checked it's pretty tricky to do it because of how the RGB standard works :P
Callum Morris
@CaLxCyMru
Oct 18 2015 12:45
Well, from what I can see, isn't brightness just a darker shade of whatever colour you are trying to achieve? For example, if you set a dark colour, it will appear to be very, well, dark (like it hasn't got a lot of brightness) but set that colour but a bit ligher, that would work right? I mean, pseudo brightness at least.. :)
Adam Hellberg
@Sharparam
Oct 18 2015 12:46
that's the basics of it, @CaLxCyMru. but the brightness control on the keyboard (or through synapse) seems to set the "Max brightness" that you can then achieve with SDK
setting RGB(255, 0, 0) (bright red) will set a darker red if the keyboard's brightness has been lowered in synapse
Dariusz Niemczyk
@Palid
Oct 18 2015 12:47
You're probably right about the brightness thingy. :D
Just checked how it works in the visualiser and it looks like it does exactly the thing.
Callum Morris
@CaLxCyMru
Oct 18 2015 12:48
What the hell... It doesn't make sense that they would exclude such a huge chunk from a public SDK..There MUST be a way that you can change the "Max Brightness" that is set in synapse..
Adam Hellberg
@Sharparam
Oct 18 2015 12:48
it would have to be somewhere other than the Chroma SDK
they'll likely do some kind of change, as changing brightness with the keyboard hotkeys will currently revert the colors to the synapse setting, overriding an app's setting until the next time app updates the colors
which seems like a bug to me
Dariusz Niemczyk
@Palid
Oct 18 2015 12:51
It's such a pity that Chroma stuff is being sold for a while already, but the SDK is far from good
hope that at least Nabu's SDK is better :D
Adam Hellberg
@Sharparam
Oct 18 2015 12:51
tbh the Nabu feels lackluster compared to the other Android Wear stuff that is available
they don't even use the android wear API, for one thing
the one i had could never stay paired to my phone :/
Nico
@njbmartin
Oct 18 2015 12:52
The SDK is extremely powerful. it's entirely up to you to create amazing things
Adam Hellberg
@Sharparam
Oct 18 2015 12:52
then they pushed a new app update and made it completely useless
@njbmartin hai!
Nico
@njbmartin
Oct 18 2015 12:54
for example, the brightness can be achieved with your own code. I have a function that essentially fakes opacity by mixing a red for example with black at a certain opacity.
This is exactly what the Audio visualiser is doing
Adam Hellberg
@Sharparam
Oct 18 2015 12:55
yes, but it's still limited to a maximum brightness according to the brightness setting in synapse
you can't achieve absolute maximum brightness unless the brightness slider has been set to max in synapse before running the code
Nico
@njbmartin
Oct 18 2015 12:57
I was answering @Palid's question about fading colours like Audio Visualiser
Dariusz Niemczyk
@Palid
Oct 18 2015 13:09
@njbmartin Don't you think, that SDK should provide it?
Sure, you can do it, but those are hacks. ;)
If we go this way we can say 'screw the SDK, we can use port commands!'
Nico
@njbmartin
Oct 18 2015 13:10
the SDK doesn't need to provide RGBA support
Dariusz Niemczyk
@Palid
Oct 18 2015 13:12
@njbmartin IMHO it should provide sufficient abstractions. Spaghetti comes otherwise
or reimplementing the wheel each and every time
Brandon Scott
@brandonscott
Oct 18 2015 13:16
Where the SDK is primarily focused on coloured lighting, it should provide the necessary abstractions.
Adam Hellberg
@Sharparam
Oct 18 2015 13:17
he's alive!
Brandon Scott
@brandonscott
Oct 18 2015 13:17
I'll speak with the engineers and see where they're likely to implement that, otherwise we can build in our own abstraction into Colore.
Adam Hellberg
@Sharparam
Oct 18 2015 13:17
@brandonscott Did we ask them about directly mapping alpha to brightness?
Dariusz Niemczyk
@Palid
Oct 18 2015 13:19
@brandonscott ++
When SDK's mature enough I can try doing bindings for node.js. :D
Brandon Scott
@brandonscott
Oct 18 2015 13:26
We didn't follow up on it. I do have it written down to however.