/usr/share/doc/love/html/love.math.gammaToLinear.html is in love-doc 0.9.1-4ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="generator" content="MediaWiki 1.16.2" />
<link rel="shortcut icon" href="favicon.ico" />
<link rel="search" type="application/opensearchdescription+xml" href="https://love2d.org/w/opensearch_desc.php" title="LOVE (en)" />
<link title="Creative Commons" type="application/rdf+xml" href="https://love2d.org/w/index.php?title=love.math.gammaToLinear&action=creativecommons" rel="meta" />
<link rel="copyright" href="http://www.gnu.org/copyleft/fdl.html" />
<link rel="alternate" type="application/atom+xml" title="LOVE Atom feed" href="https://love2d.org/w/index.php?title=Special:RecentChanges&feed=atom" /> <title>love.math.gammaToLinear - LOVE</title>
<link rel="stylesheet" href="shared.css" media="screen" />
<link rel="stylesheet" href="commonPrint.css" media="print" />
<link rel="stylesheet" href="main.css" media="screen" />
<link rel="stylesheet" href="MediaWiki%3aCommon.css" />
<link rel="stylesheet" href="MediaWiki%3aPrint.css" media="print" />
<link rel="stylesheet" href="MediaWiki%3aLove.css" />
<link rel="stylesheet" href="user.css" />
<!--[if lt IE 7]><script type="text/javascript" src="https://love2d.org/w/skins/common/IEFixes.js?270"></script>
<meta http-equiv="imagetoolbar" content="no" /><![endif]-->
<script>
var skin="love",
stylepath="https://love2d.org/w/skins",
wgUrlProtocols="http\\:\\/\\/|https\\:\\/\\/|ftp\\:\\/\\/|irc\\:\\/\\/|gopher\\:\\/\\/|telnet\\:\\/\\/|nntp\\:\\/\\/|worldwind\\:\\/\\/|mailto\\:|news\\:|svn\\:\\/\\/",
wgArticlePath="https://love2d.org/wiki/$1",
wgScriptPath="/w",
wgScriptExtension=".php",
wgScript="https://love2d.org/w/index.php",
wgVariantArticlePath=false,
wgActionPaths={},
wgServer="https://www.love2d.org",
wgCanonicalNamespace="",
wgCanonicalSpecialPageName=false,
wgNamespaceNumber=0,
wgPageName="love.math.gammaToLinear",
wgTitle="love.math.gammaToLinear",
wgAction="view",
wgArticleId=3474,
wgIsArticle=true,
wgUserName=null,
wgUserGroups=null,
wgUserLanguage="en",
wgContentLanguage="en",
wgBreakFrames=false,
wgCurRevisionId=13061,
wgVersion="1.16.2",
wgEnableAPI=true,
wgEnableWriteAPI=true,
wgSeparatorTransformTable=["", ""],
wgDigitTransformTable=["", ""],
wgMainPageTitle="Main Page",
wgFormattedNamespaces={"-2": "Media", "-1": "Special", "0": "", "1": "Talk", "2": "User", "3": "User talk", "4": "LOVE", "5": "LOVE talk", "6": "File", "7": "File talk", "8": "MediaWiki", "9": "MediaWiki talk", "10": "Template", "11": "Template talk", "12": "Help", "13": "Help talk", "14": "Category", "15": "Category talk", "102": "Property", "103": "Property talk", "104": "Type", "105": "Type talk", "108": "Concept", "109": "Concept talk", "500": "Tutorial", "501": "Tutorial talk"},
wgNamespaceIds={"media": -2, "special": -1, "": 0, "talk": 1, "user": 2, "user_talk": 3, "love": 4, "love_talk": 5, "file": 6, "file_talk": 7, "mediawiki": 8, "mediawiki_talk": 9, "template": 10, "template_talk": 11, "help": 12, "help_talk": 13, "category": 14, "category_talk": 15, "property": 102, "property_talk": 103, "type": 104, "type_talk": 105, "concept": 108, "concept_talk": 109, "tutorial": 500, "tutorial_talk": 501, "image": 6, "image_talk": 7},
wgSiteName="LOVE",
wgCategories=["Templates", "Functions"],
wgRestrictionEdit=[],
wgRestrictionMove=[];
</script>
<script type="text/javascript" src="wikibits.js"><!-- wikibits js --></script>
<!-- Head Scripts -->
<link rel="alternate" type="application/rdf+xml" title="love.math.gammaToLinear" href="https://love2d.org/w/index.php?title=Special:ExportRDF/love.math.gammaToLinear&xmlmime=rdf" />
<script type="text/javascript" src="site.js"><!-- site js --></script>
<link href="" rel="publisher" />
</head>
<body class="mediawiki ltr ns-0 ns-subject page-love_math_gammaToLinear skin-love">
<div id="globalWrapper">
<div id="column-content">
<div id="content">
<a name="top" id="top"></a>
<div id="p-cactions">
<h5>Views</h5>
<div>
<ul>
<li id="ca-nstab-main" class="selected"><a href="love.math.gammaToLinear.html" title="View the content page [c]" accesskey="c">Page</a></li>
<li id="ca-talk" class="new"><a href="https://love2d.org/w/index.php?title=Talk:love.math.gammaToLinear&action=edit&redlink=1" title="Discussion about the content page [t]" accesskey="t">Discussion</a></li>
<li id="ca-viewsource"><a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear&action=edit" title="This page is protected. You can view its source [e]" accesskey="e">View source</a></li>
<li id="ca-history"><a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear&action=history" title="Past revisions of this page [h]" accesskey="h">History</a></li> </ul>
</div>
</div>
<h1 id="firstHeading" class="firstHeading">love.math.gammaToLinear</h1>
<div id="bodyContent">
<div id="contentSub"></div>
<!-- start content -->
<table bgcolor="#d0d0ff" style="margin-top: 1em; padding: 3px; border-radius:5px; -moz-border-radius:5px;">
<tr>
<td><i> <b>Available since LÖVE <a href="https://love2d.org/wiki/0.9.1" title="0.9.1">0.9.1</a></b> </i>
</td></tr>
<tr>
<td> <small>This function is not supported in earlier versions.</small>
</td></tr></table>
<p>Converts a color from gamma-space (sRGB) to linear-space (RGB). This is useful when doing gamma-correct rendering using colors created based on what they look like on-screen.
</p><p>Read more about gamma-correct rendering <a href="http://http.developer.nvidia.com/GPUGems3/gpugems3_ch24.html" class="external text" rel="nofollow">here</a>, <a href="http://filmicgames.com/archives/299" class="external text" rel="nofollow">here</a>, and <a href="http://renderwonk.com/blog/index.php/archive/adventures-with-gamma-correct-rendering/" class="external text" rel="nofollow">here</a>.
</p>
<table bgcolor="gold" style="border-style:solid;border-width:1px;-moz-border-radius:3px;border-radius:3px;" align="center" width="80%">
<tr>
<td width="1"> <a href="https://love2d.org/wiki/File:O.png" class="image"><img alt="O.png" src="https://love2d.org/w/images/0/09/O.png" width="64" height="64" /></a>
</td><td>Gamma-correct rendering is an advanced topic and it's easy to get color-spaces mixed up. If you're not sure whether you need this, you might want to avoid it.
</td><td width="1">
</td></tr></table><br />
<h2> <span class="mw-headline" id="Function"> Function </span></h2>
<h3> <span class="mw-headline" id="Synopsis"> Synopsis </span></h3>
<div dir="ltr" class="mw-geshi" style="text-align: left;"><div class="lua source-lua">lr, lg, lb <span class="sy0">=</span> love.<span class="kw1">math</span>.gammaToLinear<span class="br0">(</span> r, g, b <span class="br0">)</span></div></div>
<h3> <span class="mw-headline" id="Arguments"> Arguments </span></h3>
<dl><dt><code><a href="number.html" title="number">number</a> r</code></dt><dd> The red channel of the sRGB color to convert.
</dd><dt><code><a href="number.html" title="number">number</a> g</code></dt><dd> The green channel of the sRGB color to convert.
</dd><dt><code><a href="number.html" title="number">number</a> b</code></dt><dd> The blue channel of the sRGB color to convert.
</dd></dl>
<h3> <span class="mw-headline" id="Returns"> Returns </span></h3>
<dl><dt><code><a href="number.html" title="number">number</a> lr</code></dt><dd> The red channel of the converted color in linear RGB space.
</dd><dt><code><a href="number.html" title="number">number</a> lg</code></dt><dd> The green channel of the converted color in linear RGB space.
</dd><dt><code><a href="number.html" title="number">number</a> lb</code></dt><dd> The blue channel of the converted color in linear RGB space.
</dd></dl>
<h3> <span class="mw-headline" id="Notes"> Notes </span></h3>
<p>An alpha value can be passed into the function as a fourth argument, but it will be returned unchanged because alpha is always linear.
</p>
<h2> <span class="mw-headline" id="Function_2"> Function </span></h2>
<h3> <span class="mw-headline" id="Synopsis_2"> Synopsis </span></h3>
<div dir="ltr" class="mw-geshi" style="text-align: left;"><div class="lua source-lua">lr, lg, lb <span class="sy0">=</span> love.<span class="kw1">math</span>.gammaToLinear<span class="br0">(</span> color <span class="br0">)</span></div></div>
<h3> <span class="mw-headline" id="Arguments_2"> Arguments </span></h3>
<dl><dt><code><a href="table.html" title="table">table</a> color</code></dt><dd> An array with the red, green, and blue channels of the sRGB color to convert.
</dd></dl>
<h3> <span class="mw-headline" id="Returns_2"> Returns </span></h3>
<dl><dt><code><a href="number.html" title="number">number</a> lr</code></dt><dd> The red channel of the converted color in linear RGB space.
</dd><dt><code><a href="number.html" title="number">number</a> lg</code></dt><dd> The green channel of the converted color in linear RGB space.
</dd><dt><code><a href="number.html" title="number">number</a> lb</code></dt><dd> The blue channel of the converted color in linear RGB space.
</dd></dl>
<h2> <span class="mw-headline" id="Function_3"> Function </span></h2>
<h3> <span class="mw-headline" id="Synopsis_3"> Synopsis </span></h3>
<div dir="ltr" class="mw-geshi" style="text-align: left;"><div class="lua source-lua">lc <span class="sy0">=</span> love.<span class="kw1">math</span>.gammaToLinear<span class="br0">(</span> c <span class="br0">)</span></div></div>
<h3> <span class="mw-headline" id="Arguments_3"> Arguments </span></h3>
<dl><dt><code><a href="number.html" title="number">number</a> c</code></dt><dd> The value of a color channel in sRGB space to convert.
</dd></dl>
<h3> <span class="mw-headline" id="Returns_3"> Returns </span></h3>
<dl><dt><code><a href="number.html" title="number">number</a> lc</code></dt><dd> The value of the color channel in linear RGB space.
</dd></dl>
<h2> <span class="mw-headline" id="Notes_2"> Notes </span></h2>
<p>Gamma-space sRGB has more precision in the lower end than linear RGB. Using this function to convert from sRGB to RGB can result in non-integer color values, which get truncated to integers and lose precision when used with other functions such as <a href="love.graphics.setColor.html" title="love.graphics.setColor">love.graphics.setColor</a>.
</p>
<h2> <span class="mw-headline" id="Examples"> Examples </span></h2>
<h3> <span class="mw-headline" id="Gamma-correct_rendering_using_colored_circles"> Gamma-correct rendering using colored circles </span></h3>
<div dir="ltr" class="mw-geshi" style="text-align: left;"><div class="lua source-lua"><span class="kw1">function</span> love.load<span class="br0">(</span><span class="br0">)</span><br /> <span class="co1">-- Enable the sRGB mode for the window. This converts from linear RGB to gamma-space sRGB when</span><br /> <span class="co1">-- things are drawn to the screen (but blending calculations are done in linear RGB space.)</span><br /> <span class="co1">-- Computer monitors display in the sRGB color space.</span><br /> love.window.setMode<span class="br0">(</span><span class="nu0">800</span>, <span class="nu0">600</span>, <span class="br0">{</span>srgb<span class="sy0">=</span><span class="kw1">true</span>, fsaa<span class="sy0">=</span><span class="nu0">4</span><span class="br0">}</span><span class="br0">)</span><br /><br /> <span class="co1">-- If sRGB mode for the screen isn't supported, the flag will be false.</span><br /> <span class="kw1">local</span> _, _, flags <span class="sy0">=</span> love.window.getMode<span class="br0">(</span><span class="br0">)</span><br /> gammacorrect <span class="sy0">=</span> flags.srgb<br /><br /> <span class="co1">-- Here we have a red-ish color with 50% opacity. I chose the color values here based on what it looked like</span><br /> <span class="co1">-- on-screen, and because computer monitors display in the sRGB color space, this color is in the sRGB color space.</span><br /> color1 <span class="sy0">=</span> <span class="br0">{</span><span class="nu0">187</span>, <span class="nu0">54</span>, <span class="nu0">100</span>, <span class="nu0">128</span><span class="br0">}</span><br /><br /> <span class="kw1">if</span> gammacorrect <span class="kw1">then</span><br /> <span class="co1">-- If the window is in srgb mode, it converts from linear RGB to sRGB when drawing. This means we need to</span><br /> <span class="co1">-- convert the sRGB-space color to linear RGB space.</span><br /> color1 <span class="sy0">=</span> <span class="br0">{</span>love.<span class="kw1">math</span>.gammaToLinear<span class="br0">(</span>color1<span class="br0">)</span><span class="br0">}</span><br /> <span class="kw1">end</span><br /><br /> <span class="co1">-- We want this color to be halfway between white and black (with 50% opacity as well).</span><br /> <span class="co1">-- If the window is in srgb mode, it expects linear-space colors and does blending that way, so this will work</span><br /> <span class="co1">-- out fine. If the window isn't in srgb mode, the color won't be halfway between white and black because</span><br /> <span class="co1">-- the values drawn to the screen aren't treated as linear-space RGB and converted to sRGB.</span><br /> <span class="co1">-- We could use love.math.linearToGamma in that case, but blending would still be wrong.</span><br /> color2 <span class="sy0">=</span> <span class="br0">{</span><span class="nu0">128</span>, <span class="nu0">128</span>, <span class="nu0">128</span>, <span class="nu0">128</span><span class="br0">}</span><br /><span class="kw1">end</span><br /><br /><span class="co1">-- Draw two overlapping circles with additive blending, using the colors above.</span><br /><span class="kw1">function</span> love.draw<span class="br0">(</span><span class="br0">)</span><br /> love.graphics.setBlendMode<span class="br0">(</span><span class="st0">"additive"</span><span class="br0">)</span><br /> <br /> love.graphics.setColor<span class="br0">(</span>color1<span class="br0">)</span><br /> love.graphics.circle<span class="br0">(</span><span class="st0">"fill"</span>, <span class="nu0">300</span>, <span class="nu0">300</span>, <span class="nu0">200</span><span class="br0">)</span><br /><br /> love.graphics.setColor<span class="br0">(</span>color2<span class="br0">)</span><br /> love.graphics.circle<span class="br0">(</span><span class="st0">"fill"</span>, <span class="nu0">500</span>, <span class="nu0">300</span>, <span class="nu0">200</span><span class="br0">)</span><br /><span class="kw1">end</span></div></div>
<h3> <span class="mw-headline" id="Pre-multiply_an_image.27s_alpha_with_its_RGB_values_in_linear_RGB_space"> Pre-multiply an image's alpha with its RGB values in linear RGB space </span></h3>
<div dir="ltr" class="mw-geshi" style="text-align: left;"><div class="lua source-lua"><span class="kw1">local</span> <span class="kw1">function</span> PremultiplyLinearPixel<span class="br0">(</span>x, y, r, g, b, a<span class="br0">)</span><br /> r <span class="sy0">=</span> r <span class="sy0">*</span> a <span class="sy0">/</span> <span class="nu0">255</span><br /> g <span class="sy0">=</span> g <span class="sy0">*</span> a <span class="sy0">/</span> <span class="nu0">255</span><br /> b <span class="sy0">=</span> b <span class="sy0">*</span> a <span class="sy0">/</span> <span class="nu0">255</span><br /> <span class="kw1">return</span> r, g, b, a<br /><span class="kw1">end</span><br /><br /><span class="kw1">local</span> <span class="kw1">function</span> PremultiplyGammaPixel<span class="br0">(</span>x, y, r, g, b, a<span class="br0">)</span><br /> r, g, b <span class="sy0">=</span> love.<span class="kw1">math</span>.gammaToLinear<span class="br0">(</span>r, g, b<span class="br0">)</span><br /> r <span class="sy0">=</span> r <span class="sy0">*</span> a <span class="sy0">/</span> <span class="nu0">255</span><br /> g <span class="sy0">=</span> g <span class="sy0">*</span> a <span class="sy0">/</span> <span class="nu0">255</span><br /> b <span class="sy0">=</span> b <span class="sy0">*</span> a <span class="sy0">/</span> <span class="nu0">255</span><br /> r, g, b <span class="sy0">=</span> love.<span class="kw1">math</span>.linearToGamma<span class="br0">(</span>r, g, b<span class="br0">)</span><br /> <span class="kw1">return</span> r, g, b, a<br /><span class="kw1">end</span><br /><br /><span class="co1">-- Loads an image and pre-multiplies its RGB values with its alpha, for use with the 'premultiplied' alpha blend mode.</span><br /><span class="co1">-- The multiplication correctly accounts for the color-space of the image.</span><br /><span class="kw1">function</span> NewPremultipliedImage<span class="br0">(</span>filepath, <span class="kw1">format</span><span class="br0">)</span><br /> <span class="kw1">local</span> imagedata <span class="sy0">=</span> love.image.newImageData<span class="br0">(</span>filepath<span class="br0">)</span><br /><br /> <span class="kw1">local</span> mapfunction <span class="sy0">=</span> <span class="kw1">format</span> <span class="sy0">==</span> <span class="st0">"srgb"</span> <span class="kw1">and</span> PremultiplyGammaPixel <span class="kw1">or</span> PremultiplyLinearPixel<br /> imagedata:mapPixel<span class="br0">(</span>mapfunction<span class="br0">)</span><br /><br /> <span class="kw1">return</span> love.graphics.newImage<span class="br0">(</span>imagedata, <span class="kw1">format</span><span class="br0">)</span><br /><span class="kw1">end</span><br /><br /><span class="co1">-- This assumes gamma-correct rendering (with the sRGB window flag) is being done.</span><br />image <span class="sy0">=</span> NewPremultipliedImage<span class="br0">(</span><span class="st0">"pig.png"</span>, <span class="st0">"srgb"</span><span class="br0">)</span></div></div>
<h2> <span class="mw-headline" id="See_Also"> See Also </span></h2>
<ul><li> <a href="love.math.html" title="love.math">love.math</a>
</li><li> <a href="love.math.linearToGamma.html" title="love.math.linearToGamma">love.math.linearToGamma</a>
</li></ul>
<h2> <span class="mw-headline" id="Other_Languages"> Other Languages </span></h2>
<div class="i18n">
<p><a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(Dansk)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Dansk) (page does not exist)">Dansk</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(Deutsch)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Deutsch) (page does not exist)">Deutsch</a> –
<strong class="selflink">English</strong> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(Espa%C3%B1ol)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Español) (page does not exist)">Español</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(Fran%C3%A7ais)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Français) (page does not exist)">Français</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(Indonesia)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Indonesia) (page does not exist)">Indonesia</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(Italiano)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Italiano) (page does not exist)">Italiano</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(Lietuvi%C5%A1kai)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Lietuviškai) (page does not exist)">Lietuviškai</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(Magyar)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Magyar) (page does not exist)">Magyar</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(Nederlands)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Nederlands) (page does not exist)">Nederlands</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(Polski)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Polski) (page does not exist)">Polski</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(Portugu%C3%AAs)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Português) (page does not exist)">Português</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(Rom%C3%A2n%C4%83)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Română) (page does not exist)">Română</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(Slovensk%C3%BD)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Slovenský) (page does not exist)">Slovenský</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(Suomi)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Suomi) (page does not exist)">Suomi</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(Svenska)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Svenska) (page does not exist)">Svenska</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(T%C3%BCrk%C3%A7e)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Türkçe) (page does not exist)">Türkçe</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(%C4%8Cesky)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Česky) (page does not exist)">Česky</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Ελληνικά) (page does not exist)">Ελληνικά</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(%D0%91%D1%8A%D0%BB%D0%B3%D0%B0%D1%80%D1%81%D0%BA%D0%B8)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Български) (page does not exist)">Български</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Русский) (page does not exist)">Русский</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(%D0%A1%D1%80%D0%BF%D1%81%D0%BA%D0%B8)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Српски) (page does not exist)">Српски</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(%D0%A3%D0%BA%D1%80%D0%B0%D1%97%D0%BD%D1%81%D1%8C%D0%BA%D0%B0)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Українська) (page does not exist)">Українська</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(%D7%A2%D7%91%D7%A8%D7%99%D7%AA)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (עברית) (page does not exist)">עברית</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(%E0%B9%84%E0%B8%97%E0%B8%A2)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (ไทย) (page does not exist)">ไทย</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (日本語) (page does not exist)">日本語</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(%E6%AD%A3%E9%AB%94%E4%B8%AD%E6%96%87)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (正體中文) (page does not exist)">正體中文</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (简体中文) (page does not exist)">简体中文</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(Ti%E1%BA%BFng_Vi%E1%BB%87t)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (Tiếng Việt) (page does not exist)">Tiếng Việt</a> –
<a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear_(%ED%95%9C%EA%B5%AD%EC%96%B4)&action=edit&redlink=1" class="new" title="love.math.gammaToLinear (한국어) (page does not exist)">한국어</a>
<br />
<span style="text-align:right;"><i><a href="https://love2d.org/wiki/Help:i18n" title="Help:i18n">More info</a></i></span>
</p>
</div>
<!--
NewPP limit report
Preprocessor node count: 558/1000000
Post-expand include size: 5884/2097152 bytes
Template argument size: 2883/2097152 bytes
Expensive parser function count: 0/100
-->
<!-- Saved in parser cache with key love2d_wiki:pcache:idhash:3474-0!1!0!!en!2!edit=0 and timestamp 20140411025252 -->
<div class="printfooter">
Retrieved from "<a href="https://www.love2d.org/wiki/love.math.gammaToLinear">https://www.love2d.org/wiki/love.math.gammaToLinear</a>"</div>
<div id='catlinks' class='catlinks'><div id="mw-normal-catlinks"><a href="https://love2d.org/wiki/Special:Categories" title="Special:Categories">Categories</a>: <span dir='ltr'><a href="https://love2d.org/wiki/Category:Templates" title="Category:Templates">Templates</a></span> | <span dir='ltr'><a href="https://love2d.org/wiki/Category:Functions" title="Category:Functions">Functions</a></span></div></div> <!-- end content -->
<div class="visualClear"></div>
</div>
</div>
</div>
<div id="column-one">
<div class="portlet" id="p-personal">
<h5>Personal tools</h5>
<div class="pBody">
<ul>
<li id="pt-login"><a href="https://love2d.org/w/index.php?title=Special:UserLogin&returnto=love.math.gammaToLinear" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o">Log in</a></li>
</ul>
</div>
</div>
<div class="portlet" id="p-logo">
<a style="background-image: url(wiki.png);" href="https://love2d.org/wiki/Main_Page" title="Visit the main page"></a>
</div>
<!-- <div class="portlet" id="p-docs">
<h5>Documentation</h5>
<div class="pBody">
<ul>
<li><a href="//love2d.org/wiki/love">love</a></li>
<li><a href="//love2d.org/wiki/love.audio">love.audio</a></li>
<li><a href="//love2d.org/wiki/love.event">love.event</a></li>
<li><a href="//love2d.org/wiki/love.filesystem">love.filesystem</a></li>
<li><a href="//love2d.org/wiki/love.graphics">love.graphics</a></li>
<li><a href="//love2d.org/wiki/love.image">love.image</a></li>
<li><a href="//love2d.org/wiki/love.joystick">love.joystick</a></li>
<li><a href="//love2d.org/wiki/love.keyboard">love.keyboard</a></li>
<li><a href="//love2d.org/wiki/love.math">love.math</a></li>
<li><a href="//love2d.org/wiki/love.mouse">love.mouse</a></li>
<li><a href="//love2d.org/wiki/love.physics">love.physics</a></li>
<li><a href="//love2d.org/wiki/love.sound">love.sound</a></li>
<li><a href="//love2d.org/wiki/love.system">love.system</a></li>
<li><a href="//love2d.org/wiki/love.timer">love.timer</a></li>
<li><a href="//love2d.org/wiki/love.window">love.window</a></li>
</ul>
</div>
</div> -->
<script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
<div class='generated-sidebar portlet' id='p-documentation'>
<h5>documentation</h5>
<div class='pBody'>
<ul>
<li id="n-love"><a href="love.html">love</a></li>
<li id="n-love.audio"><a href="love.audio.html">love.audio</a></li>
<li id="n-love.event"><a href="love.event.html">love.event</a></li>
<li id="n-love.filesystem"><a href="love.filesystem.html">love.filesystem</a></li>
<li id="n-love.font"><a href="love.font.html">love.font</a></li>
<li id="n-love.graphics"><a href="love.graphics.html">love.graphics</a></li>
<li id="n-love.image"><a href="love.image.html">love.image</a></li>
<li id="n-love.joystick"><a href="love.joystick.html">love.joystick</a></li>
<li id="n-love.keyboard"><a href="love.keyboard.html">love.keyboard</a></li>
<li id="n-love.math"><a href="love.math.html">love.math</a></li>
<li id="n-love.mouse"><a href="love.mouse.html">love.mouse</a></li>
<li id="n-love.physics"><a href="love.physics.html">love.physics</a></li>
<li id="n-love.sound"><a href="love.sound.html">love.sound</a></li>
<li id="n-love.system"><a href="love.system.html">love.system</a></li>
<li id="n-love.thread"><a href="love.thread.html">love.thread</a></li>
<li id="n-love.timer"><a href="love.timer.html">love.timer</a></li>
<li id="n-love.window"><a href="love.window.html">love.window</a></li>
</ul>
</div>
</div>
<div class='generated-sidebar portlet' id='p-navigation'>
<h5>Navigation</h5>
<div class='pBody'>
<ul>
<li id="n-Home"><a href="http://love2d.org/">Home</a></li>
<li id="n-Forums"><a href="http://love2d.org/forums">Forums</a></li>
<li id="n-Issue-tracker"><a href="http://bitbucket.org/rude/love/issues">Issue tracker</a></li>
</ul>
</div>
</div>
<div class='generated-sidebar portlet' id='p-wiki_navigation'>
<h5>wiki navigation</h5>
<div class='pBody'>
<ul>
<li id="n-mainpage-description"><a href="https://love2d.org/wiki/Main_Page" title="Visit the main page [z]" accesskey="z">Main page</a></li>
<li id="n-recentchanges"><a href="https://love2d.org/wiki/Special:RecentChanges" title="The list of recent changes in the wiki [r]" accesskey="r">Recent changes</a></li>
<li id="n-randompage"><a href="https://love2d.org/wiki/Special:Random" title="Load a random page [x]" accesskey="x">Random page</a></li>
</ul>
</div>
</div>
<div id="p-search" class="portlet">
<h5><label for="searchInput">Search</label></h5>
<div id="searchBody" class="pBody">
<form action="https://love2d.org/w/index.php" id="searchform"><div>
<input type='hidden' name="title" value="Special:Search"/>
<input id="searchInput" name="search" type="text" title="Search LOVE [f]" accesskey="f" value="" />
<input type='submit' name="go" class="searchButton" id="searchGoButton" value="Go" title="Go to a page with this exact name if exists" />
<input type='submit' name="fulltext" class="searchButton" id="mw-searchButton" value="Search" title="Search the pages for this text" />
</div></form>
</div>
</div>
<div class="portlet" id="p-tb">
<h5>Toolbox</h5>
<div class="pBody">
<ul>
<li id="t-whatlinkshere"><a href="https://love2d.org/wiki/Special:WhatLinksHere/love.math.gammaToLinear" title="List of all wiki pages that link here [j]" accesskey="j">What links here</a></li>
<li id="t-recentchangeslinked"><a href="https://love2d.org/wiki/Special:RecentChangesLinked/love.math.gammaToLinear" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li>
<li id="t-specialpages"><a href="https://love2d.org/wiki/Special:SpecialPages" title="List of all special pages [q]" accesskey="q">Special pages</a></li>
<li id="t-print"><a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear&printable=yes" rel="alternate" title="Printable version of this page [p]" accesskey="p">Printable version</a></li> <li id="t-permalink"><a href="https://love2d.org/w/index.php?title=love.math.gammaToLinear&oldid=13061" title="Permanent link to this revision of the page">Permanent link</a></li><li id="t-smwbrowselink"><a href="https://love2d.org/wiki/Special:Browse/love.math.gammaToLinear" title="Special:Browse/love.math.gammaToLinear">Browse properties</a></li> </ul>
</div>
</div>
</div><!-- end of the left (by default at least) column -->
<div class="visualClear"></div>
<div id="footer">
<div id="f-poweredbyico"><a href="http://www.mediawiki.org/"><img src="poweredby_mediawiki_88x31.png" height="31" width="88" alt="Powered by MediaWiki" /></a></div>
<div id="f-copyrightico"><a href="http://www.gnu.org/copyleft/fdl.html"><img src="gnu-fdl.png" alt="GNU Free Documentation License 1.3" width="88" height="31" /></a></div>
<ul id="f-list">
<li id="lastmod"> This page was last modified on 19 February 2014, at 09:36.</li>
<li id="copyright">Content is available under <a href="http://www.gnu.org/copyleft/fdl.html" class="external ">GNU Free Documentation License 1.3</a>.</li>
<li id="privacy"><a href="https://love2d.org/wiki/LOVE:Privacy_policy" title="LOVE:Privacy policy">Privacy policy</a></li>
<li id="about"><a href="https://love2d.org/wiki/LOVE:About" title="LOVE:About">About LOVE</a></li>
<li id="disclaimer"><a href="https://love2d.org/wiki/LOVE:General_disclaimer" title="LOVE:General disclaimer">Disclaimers</a></li>
</ul>
</div>
</div>
<script>if (window.runOnloadHook) runOnloadHook();</script>
<!-- Served in 0.257 secs. --></body></html>
|