Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 15 16:13
    MasterR8 opened #273
  • Aug 12 21:50

    Sharparam on 6.0.0

    Updating the Getting Started Gu… Assuming that v6.0 is not be a … Restore Front Matter and 9 more (compare)

  • Aug 12 21:50
    Sharparam closed #271
  • Aug 12 21:50
    Sharparam edited #271
  • Aug 12 21:46
    leonardoInf commented #271
  • Aug 12 21:46
    leonardoInf commented #271
  • Aug 12 21:46
    leonardoInf commented #271
  • Aug 12 19:13
    codecov-io commented #271
  • Aug 12 19:13
    codecov-io commented #271
  • Aug 12 19:13
    codecov-io commented #271
  • Aug 12 19:10
    AppVeyorBot commented #271
  • Aug 12 19:03
    codecov-io commented #271
  • Aug 12 19:03
    leonardoInf synchronize #271
  • Aug 04 11:52
    leonardoInf commented #271
  • Aug 02 23:03
    leonardoInf commented #271
  • Aug 02 23:01
    leonardoInf commented #271
  • Aug 02 23:01
    leonardoInf commented #271
  • Aug 02 20:35
    codecov-io commented #271
  • Aug 02 20:33
    codecov-io commented #271
  • Aug 02 20:29
    AppVeyorBot commented #271
Dariusz Niemczyk
@Palid
or reimplementing the wheel each and every time
Brandon Scott
@brandonscott
Where the SDK is primarily focused on coloured lighting, it should provide the necessary abstractions.
Adam Hellberg
@Sharparam
he's alive!
Brandon Scott
@brandonscott
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
@brandonscott Did we ask them about directly mapping alpha to brightness?
Dariusz Niemczyk
@Palid
@brandonscott ++
When SDK's mature enough I can try doing bindings for node.js. :D
Brandon Scott
@brandonscott
We didn't follow up on it. I do have it written down to however.
Dariusz Niemczyk
@Palid
Guys, I'll have a lot of info about broken things in a few days. But I hardly can debug it myself
Brandon Scott
@brandonscott
What things are broken?
Dariusz Niemczyk
@Palid
@brandonscott for instance I have to surround all the set effects in try/catch block, because it can throw a native unhandled exception
I'll be releasing the shitty (I'm not a C# dev, it's really bad :D) code in a few days with comments in the code why it's not working and where is the problem.
there's also a problem with Color - Color.R/G/B return a 0-255 value, while constructor takes only 0-1 values. It gave me some headache.
Brandon Scott
@brandonscott
Well yes, setting an effect than is interacting with the SDK
So an unhandled exception can be expected.
Dariusz Niemczyk
@Palid
@brandonscott that's why I said that I can hardly debug it myself - I guess you guys are better in the SDK ;)
Brandon Scott
@brandonscott
The exception will provide details to you
As to what the exception is
Dariusz Niemczyk
@Palid
It provided 'native code' information.
nothing else, or I just can't use Visual Studio. ;)
Brandon Scott
@brandonscott
Can you provide a stacktrace?
Color can take multiple constructors
Floats, Doubles, Bytes
etc
Dariusz Niemczyk
@Palid
Sure, I'll do it when I replicate the error again (if there's any stacktrace at all - last time I just had [native code], my function, [native code] stack trace)
@brandonscott Yeah, but I'm talking more about it being inconsistent with it's returning values. It returns 0-255 value when asking for current RGB, but takes 0-1 value
and does weird magic when provided something higher - I was wondering for a longer while why my keys aren't getting darker, but are randomly flashing around haha
Brandon Scott
@brandonscott
RGB values are returned from the object as byte
Dariusz Niemczyk
@Palid
@brandonscott I'm not talking about types, I'm talking about possible values ;)
when you do it as byte it also takes 0-1 range
Adam Hellberg
@Sharparam
http://coralestudios.github.io/Colore/docs/struct_corale_1_1_colore_1_1_core_1_1_color.html this page has all possible constructors for color. If it's invoking the float or double constructor it means your are passing floating point values to one or more of the constructor parameters.
@Palid ^
Nico
@njbmartin
@palid I would imagine the issue is more how you are casting the RGB values when setting the color
This message was deleted
Dariusz Niemczyk
@Palid
If you do a long-running animation for keyboard.Instance.setGrid() without using Clear method, the leds crashes and you have to replug (restart doesn't have). I suppose the same thing goes for other animations (that may be the reason I have these try-catches).
OSSing the code right now.
Brandon Scott
@brandonscott
How long is "long running"?
Dariusz Niemczyk
@Palid
~~10-20seconds, changes every 125ms
lemme count.
counted 25s.
Brandon Scott
@brandonscott
Does it crash with an error?
Dariusz Niemczyk
@Palid
after another 10 to 20seconds it throws an error
sec, pasting stack
'very helpful'
here's the repo
compile&click fail button
I know that the code sucks, sorry. :D
I can't get used to non-dynamic objects without duck typing