BSB Developer Docs
Loading...
Searching...
No Matches
BrightnessCurve Struct Reference

User brightness (linear, 0-100) is converted to device-specific brightness using the below parameters: More...

Data Fields

uint8_t min
 
uint8_t max
 
float power
 

Detailed Description

User brightness (linear, 0-100) is converted to device-specific brightness using the below parameters:

  • min: Lower limit of the device brightness, inclusive
  • max: Upper limit of the device brightness, inclusive
  • power: Exponential power that controls the brightness curve behaviour:
    • 0: Completely linear (straight line between min and max)
    • > 0 : Ease in (grows slowly near min, grows fast near max)
    • < 0 : Ease out (grows fast near min, grows slowly near max)

Larger absolute power values result in a more pronounced exponential behaviour. The output value is guaranteed to always stay between min and max.


The documentation for this struct was generated from the following file: