BP Color Definitions

Hello,
I have been toying around with basic animations and am a bit confused on two things related to colors.
(1) My understanding is that bibliopixel uses HSV for its color definitions. However, if I take a HSV color picker, and try to get orange for example (25, 81, 100), and then use that same HSV value set for a color with an animation, instead of orange, I get blue. Why is this? Am I misunderstanding something about what BiblioPixel uses for colors?
(2) BiblioPixel does not seem to allow using a HSV definition (say same as above) when listing colors for an animation with multiple. For example, colors: red, [25, 81, 100], yellow throws errors. Is there a way around this, perhaps either defining a variable somewhere or something more obvious?

Did not see clear answers to either of these in the documentation, so figured I’d give it a separate thread just for future reference.

Thanks!

Thanks Tom! Just so I can be certain, this is the latest documentation, right?

That makes sense, should have thought of that. Thanks for the clarification!

···

On Friday, December 7, 2018 at 3:46:17 AM UTC-6, Tom Swirly wrote:

  1. BP uses RGB colors, not HSV! I’ll be sure to add that to the documentation.
  1. This little segment isn’t going to work, because Yaml doesn’t understand this properly:

colors: red, [25, 81, 100], yellow

Yaml thinks it is the dictionary:

{‘colors’: ‘red, [25, 81, 100], yellow’}

where the value is a long string ‘red, [25, 81, 100], yellow’

You need to tell Yaml that the entry for colors: is a list by using square brackets [ ] - like this!

colors: [red, [25, 81, 100], yellow]

On Fri, Dec 7, 2018 at 9:48 AM Nick Nicholas.Tal...@gmail.com wrote:

Hello,
I have been toying around with basic animations and am a bit confused on two things related to colors.
(1) My understanding is that bibliopixel uses HSV for its color definitions. However, if I take a HSV color picker, and try to get orange for example (25, 81, 100), and then use that same HSV value set for a color with an animation, instead of orange, I get blue. Why is this? Am I misunderstanding something about what BiblioPixel uses for colors?
(2) BiblioPixel does not seem to allow using a HSV definition (say same as above) when listing colors for an animation with multiple. For example, colors: red, [25, 81, 100], yellow throws errors. Is there a way around this, perhaps either defining a variable somewhere or something more obvious?

Did not see clear answers to either of these in the documentation, so figured I’d give it a separate thread just for future reference.

Thanks!

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/7eb2f0b1-93e5-428e-b00e-98eba7cd025f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


/t

https://tom.ritchford.com

https://tom.swirly.com

That’s awesome! Thanks a lot, Tom!

···

On Friday, December 7, 2018 at 10:36:57 AM UTC-6, Tom Swirly wrote:

That’s the correct documentation.

If there’s a hole in the floor, just because you “should have” seen it doesn’t matter if you have fallen in it. :smiley:

I just pushed tested changes to the develop branch to handle this problem much better and will probably release it over the weekend some time. Turns out most of the work was done already but handling your specific case was a little trickier… but it’s done.

On Fri, Dec 7, 2018 at 4:38 PM Nick Nicholas.Tal...@gmail.com wrote:

Thanks Tom! Just so I can be certain, this is the latest documentation, right?

That makes sense, should have thought of that. Thanks for the clarification!

On Friday, December 7, 2018 at 3:46:17 AM UTC-6, Tom Swirly wrote:

  1. BP uses RGB colors, not HSV! I’ll be sure to add that to the documentation.
  1. This little segment isn’t going to work, because Yaml doesn’t understand this properly:

colors: red, [25, 81, 100], yellow

Yaml thinks it is the dictionary:

{‘colors’: ‘red, [25, 81, 100], yellow’}

where the value is a long string ‘red, [25, 81, 100], yellow’

You need to tell Yaml that the entry for colors: is a list by using square brackets [ ] - like this!

colors: [red, [25, 81, 100], yellow]

On Fri, Dec 7, 2018 at 9:48 AM Nick Nicholas.Tal...@gmail.com wrote:

Hello,
I have been toying around with basic animations and am a bit confused on two things related to colors.
(1) My understanding is that bibliopixel uses HSV for its color definitions. However, if I take a HSV color picker, and try to get orange for example (25, 81, 100), and then use that same HSV value set for a color with an animation, instead of orange, I get blue. Why is this? Am I misunderstanding something about what BiblioPixel uses for colors?
(2) BiblioPixel does not seem to allow using a HSV definition (say same as above) when listing colors for an animation with multiple. For example, colors: red, [25, 81, 100], yellow throws errors. Is there a way around this, perhaps either defining a variable somewhere or something more obvious?

Did not see clear answers to either of these in the documentation, so figured I’d give it a separate thread just for future reference.

Thanks!

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/7eb2f0b1-93e5-428e-b00e-98eba7cd025f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


/t

https://tom.ritchford.com

https://tom.swirly.com

You received this message because you are subscribed to the Google Groups “Maniacal Labs Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to maniacal-labs-users+unsubscribe@googlegroups.com.

To post to this group, send email to maniacal-...@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/maniacal-labs-users/016d552f-5330-4f51-86d6-ba597e0dfd07%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


/t

https://tom.ritchford.com

https://tom.swirly.com