Lumitronix_Iflex_Pro_Workshop
Library to interact with the iFlexPro
NeoGammaNullMethod.h
Go to the documentation of this file.
1
/*-------------------------------------------------------------------------
2
NeoGammaNullMethod class is used to correct RGB colors for human eye gamma levels equally
3
across all color channels
4
5
Written by Michael C. Miller.
6
7
I invest time and resources providing this open source code,
8
please support me by dontating (see https://github.com/Makuna)
9
10
-------------------------------------------------------------------------
11
This file is part of the LUMITRONIX_iFlex_Workshop library.
12
13
LumitronixIFlexBus is free software: you can redistribute it and/or modify
14
it under the terms of the GNU Lesser General Public License as
15
published by the Free Software Foundation, either version 3 of
16
the License, or (at your option) any later version.
17
18
LumitronixIFlexBus is distributed in the hope that it will be useful,
19
but WITHOUT ANY WARRANTY; without even the implied warranty of
20
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
GNU Lesser General Public License for more details.
22
23
You should have received a copy of the GNU Lesser General Public
24
License along with LumitronixIFlex. If not, see
25
<http://www.gnu.org/licenses/>.
26
-------------------------------------------------------------------------*/
27
#pragma once
28
29
// no gamma correction at all
30
class
NeoGammaNullMethod
31
{
32
public
:
33
static
uint8_t
Correct
(uint8_t value)
34
{
35
return
value;
36
}
37
38
static
uint16_t
Correct
(uint16_t value)
39
{
40
return
value;
41
}
42
};
NeoGammaNullMethod
Definition:
NeoGammaNullMethod.h:31
NeoGammaNullMethod::Correct
static uint8_t Correct(uint8_t value)
Definition:
NeoGammaNullMethod.h:33
NeoGammaNullMethod::Correct
static uint16_t Correct(uint16_t value)
Definition:
NeoGammaNullMethod.h:38
src
internal
colors
NeoGammaNullMethod.h
Generated by
1.9.1