Treehopper C# API
Utility Class Reference

Utility functions useful for Display classes More...

Static Public Member Functions

static double BrightnessToCieLuminance (double brightness)
 Returns the CIE 1976 relative luminance calculated from an input intensity (brightness) More...
 

Detailed Description

Utility functions useful for Display classes

Member Function Documentation

◆ BrightnessToCieLuminance()

static double BrightnessToCieLuminance ( double  brightness)
static

Returns the CIE 1976 relative luminance calculated from an input intensity (brightness)

Parameters
brightnessThe input intensity, from 0.0-1.0, to convert
Returns
The CIE 1976 relative luminance, normalized to a 0-1 scale

"Brightness" is perception oriented for intuitiveness. This function can be used to convert the perceptual value to a normalized luminance value that an LED driver can use to determine the correct PWM duty cycle or analog current drive strength needed to produce the associated brightness.


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