File: color_space.md

package info (click to toggle)
python-pyglm 2.8.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,008 kB
  • sloc: cpp: 53,029; python: 3,683; makefile: 7
file content (25 lines) | stat: -rw-r--r-- 1,229 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[//]: # (generated using SlashBack 0.2.0)

  
# color\_space methods  
The following methods are all part of the **color\_space methods**\.  
Allow to perform bit operations on integer values\.  
## Table of contents  
  
* [**convertLinearToSRGB** function](#convertlineartosrgb-function)  
* [**convertSRGBToLinear** function](#convertsrgbtolinear-function)  
  
### convertLinearToSRGB\(\) function  
#### <code>glm.<code>**convertLinearToSRGB**(**ColorLinear**: *vecN*) -\> *vecN*</code></code>  
&emsp;&emsp;Convert a linear color to sRGB color using a standard gamma correction\.  
  
#### <code>glm.<code>**convertLinearToSRGB**(**ColorLinear**: *vecN*, **Gamma**: *number*) -\> *vecN*</code></code>  
&emsp;&emsp;Convert a linear color to sRGB color using a custom gamma correction\.  
  
### convertSRGBToLinear\(\) function  
#### <code>glm.<code>**convertSRGBToLinear**(**ColorLinear**: *vecN*) -\> *vecN*</code></code>  
&emsp;&emsp;Convert a sRGB color to linear color using a standard gamma correction\.  
  
#### <code>glm.<code>**convertSRGBToLinear**(**ColorLinear**: *vecN*, **Gamma**: *number*) -\> *vecN*</code></code>  
&emsp;&emsp;Convert a sRGB color to linear color using a custom gamma correction\.