mirror of
https://github.com/Makuna/NeoPixelBus.git
synced 2025-08-10 06:14:26 +02:00
Updated FAQ #6 (markdown)
@@ -1,7 +1,7 @@
|
||||
### Is there a way to specify a color using a color wheel?
|
||||
The color wheel routines you may have seen in other code is really a hack of the core feature of HSL or HSB(HSV) color space. The number often represented in degrees of 0 to 360 is actually the Hue value for this alternate color spaces. Its called a color wheel as these color spaces are often displayed as a wheel as their target audience was visual designers and not engineers.
|
||||
The color wheel routines you may have seen in other code is really a hack of the core feature of HSL or HSB(HSV) color space. The number often represented in degrees of 0 to 360 is actually the Hue value for these alternate color spaces. Its called a color wheel as these color spaces are often displayed as a wheel as their target audience was visual designers and not engineers.
|
||||
|
||||
NOTE: There is no HsvColor in my library, as HsbColor is really the same thing.
|
||||
NOTE: There is no HsvColor in my library, but HsbColor is really the same thing.
|
||||
|
||||
You can thus just use the HslColor or HsbColor objects to accomplish this. In the case of my library, the Hue value range is 0.0 to 1.0 instead of 0 to 360, so some minor math will correct that.
|
||||
```
|
||||
|
Reference in New Issue
Block a user