This file is indexed.

/usr/share/doc/love/html/Canvas.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
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
<!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=Canvas&amp;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&amp;feed=atom" />		<title>Canvas - 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="Canvas",
wgTitle="Canvas",
wgAction="view",
wgArticleId=2212,
wgIsArticle=true,
wgUserName=null,
wgUserGroups=null,
wgUserLanguage="en",
wgContentLanguage="en",
wgBreakFrames=false,
wgCurRevisionId=12769,
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=["Types"],
wgRestrictionEdit=[],
wgRestrictionMove=[];
</script>
		<script type="text/javascript" src="wikibits.js"><!-- wikibits js --></script>
		<!-- Head Scripts -->
		<link rel="alternate" type="application/rdf+xml" title="Canvas" href="https://love2d.org/w/index.php?title=Special:ExportRDF/Canvas&amp;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-Canvas 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="Canvas.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:Canvas&amp;action=edit&amp;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=Canvas&amp;action=edit" title="This page is protected.&#10;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=Canvas&amp;action=history" title="Past revisions of this page [h]" accesskey="h">History</a></li>				</ul>
			</div>
		</div>
	
		<h1 id="firstHeading" class="firstHeading">Canvas</h1>
		<div id="bodyContent">
			<div id="contentSub"></div>
									<!-- start content -->
			<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>Some older graphics cards do not support canvases, and will throw an error if you attempt to use them.  You should try to avoid using canvases for non-optional effects unless necessary, to avoid excluding users. Use <a href="love.graphics.isSupported.html" title="love.graphics.isSupported">love.graphics.isSupported("canvas")</a> to check for support.
</td><td width="1">&nbsp;
</td></tr></table><br />
<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.8.0" title="0.8.0">0.8.0</a></b> </i>
</td></tr>
<tr>
<td> <small>It has been renamed from <a href="Framebuffer.html" title="Framebuffer">Framebuffer</a>.</small>
</td></tr></table>
<p><br />
A Canvas is used for off-screen rendering. Think of it as an invisible screen that you can draw to, but that will not be visible until you draw it to the actual visible screen. It is also known as "render to texture".
</p><p>By drawing things that do not change position often (such as background items) to the Canvas, and then drawing the entire Canvas instead of each item,  you can reduce the number of draw operations performed each frame.
</p><p>Canvases can be susceptible to <a href="https://love2d.org/wiki/PO2_Syndrome" title="PO2 Syndrome"> power of 2 syndrome</a>. Most graphics cards that support Canvas should have non-PO2 texture support. However, there are some old cards that do not. Check with <a href="love.graphics.isSupported.html" title="love.graphics.isSupported">love.graphics.isSupported("npot")</a> if it is supported.
</p>
<h2> <span class="mw-headline" id="Constructors"> Constructors </span></h2>
<table class="smwtable" style="background-color: #eeeeff;">


<tr>
<td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;"><a href="love.graphics.newCanvas.html" title="love.graphics.newCanvas">love.graphics.newCanvas</a></td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">Creates a new <strong class="selflink">Canvas</strong>.</td><td style="padding: 1px 5px 1px 5px; background-color: #f8fff8; vertical-align: top;"><img alt="Added since" src="https://love2d.org/w/images/a/a7/Add.png" width="8" height="11" /> <a href="https://love2d.org/wiki/0.8.0" title="0.8.0">0.8.0</a> </td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">
</td></tr>

</table>
<h2> <span class="mw-headline" id="Functions"> Functions </span></h2>
<table class="smwtable" style="background-color: #eeeeff;">


<tr>
<td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;"><a href="Canvas%3aclear.html" title="Canvas:clear">Canvas:clear</a></td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">Clears content of a Canvas.</td><td style="padding: 1px 5px 1px 5px; background-color: #f8fff8; vertical-align: top;"><img alt="Added since" src="https://love2d.org/w/images/a/a7/Add.png" width="8" height="11" /> <a href="https://love2d.org/wiki/0.8.0" title="0.8.0">0.8.0</a> </td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">
</td></tr>

<tr>
<td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;"><a href="Canvas%3agetDimensions.html" title="Canvas:getDimensions">Canvas:getDimensions</a></td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">Gets the width and height of the Canvas.</td><td style="padding: 1px 5px 1px 5px; background-color: #f8fff8; vertical-align: top;"><img alt="Added since" src="https://love2d.org/w/images/a/a7/Add.png" width="8" height="11" /> <a href="https://love2d.org/wiki/0.9.0" title="0.9.0">0.9.0</a> </td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">
</td></tr>

<tr>
<td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;"><a href="Canvas%3agetFSAA.html" title="Canvas:getFSAA">Canvas:getFSAA</a></td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">Gets the number of FSAA samples used when drawing to the Canvas.</td><td style="padding: 1px 5px 1px 5px; background-color: #f8fff8; vertical-align: top;"><img alt="Added since" src="https://love2d.org/w/images/a/a7/Add.png" width="8" height="11" /> <a href="https://love2d.org/wiki/0.9.1" title="0.9.1">0.9.1</a> </td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">
</td></tr>

<tr>
<td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;"><a href="Canvas%3agetFilter.html" title="Canvas:getFilter">Canvas:getFilter</a></td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">Gets the filter mode of the Canvas.</td><td style="padding: 1px 5px 1px 5px; background-color: #f8fff8; vertical-align: top;"><img alt="Added since" src="https://love2d.org/w/images/a/a7/Add.png" width="8" height="11" /> <a href="https://love2d.org/wiki/0.8.0" title="0.8.0">0.8.0</a> </td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">
</td></tr>

<tr>
<td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;"><a href="Canvas%3agetHeight.html" title="Canvas:getHeight">Canvas:getHeight</a></td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">Gets the height of the Canvas.</td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;"> </td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">
</td></tr>

<tr>
<td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;"><a href="Canvas%3agetImageData.html" title="Canvas:getImageData">Canvas:getImageData</a></td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">Generates <a href="ImageData.html" title="ImageData">ImageData</a> from the contents of the Canvas.</td><td style="padding: 1px 5px 1px 5px; background-color: #f8fff8; vertical-align: top;"><img alt="Added since" src="https://love2d.org/w/images/a/a7/Add.png" width="8" height="11" /> <a href="https://love2d.org/wiki/0.8.0" title="0.8.0">0.8.0</a> </td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">
</td></tr>

<tr>
<td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;"><a href="Canvas%3agetPixel.html" title="Canvas:getPixel">Canvas:getPixel</a></td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">Gets the pixel at the specified position in a Canvas.</td><td style="padding: 1px 5px 1px 5px; background-color: #f8fff8; vertical-align: top;"><img alt="Added since" src="https://love2d.org/w/images/a/a7/Add.png" width="8" height="11" /> <a href="https://love2d.org/wiki/0.9.0" title="0.9.0">0.9.0</a> </td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">
</td></tr>

<tr>
<td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;"><a href="Canvas%3agetWidth.html" title="Canvas:getWidth">Canvas:getWidth</a></td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">Gets the width of the Canvas.</td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;"> </td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">
</td></tr>

<tr>
<td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;"><a href="Canvas%3agetWrap.html" title="Canvas:getWrap">Canvas:getWrap</a></td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">Gets the wrapping properties of a Canvas.</td><td style="padding: 1px 5px 1px 5px; background-color: #f8fff8; vertical-align: top;"><img alt="Added since" src="https://love2d.org/w/images/a/a7/Add.png" width="8" height="11" /> <a href="https://love2d.org/wiki/0.8.0" title="0.8.0">0.8.0</a> </td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">
</td></tr>

<tr>
<td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;"><a href="Canvas%3arenderTo.html" title="Canvas:renderTo">Canvas:renderTo</a></td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">Render to a Canvas using a function.</td><td style="padding: 1px 5px 1px 5px; background-color: #f8fff8; vertical-align: top;"><img alt="Added since" src="https://love2d.org/w/images/a/a7/Add.png" width="8" height="11" /> <a href="https://love2d.org/wiki/0.8.0" title="0.8.0">0.8.0</a> </td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">
</td></tr>

<tr>
<td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;"><a href="Canvas%3asetFilter.html" title="Canvas:setFilter">Canvas:setFilter</a></td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">Sets the filter mode of the Canvas.</td><td style="padding: 1px 5px 1px 5px; background-color: #f8fff8; vertical-align: top;"><img alt="Added since" src="https://love2d.org/w/images/a/a7/Add.png" width="8" height="11" /> <a href="https://love2d.org/wiki/0.8.0" title="0.8.0">0.8.0</a> </td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">
</td></tr>

<tr>
<td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;"><a href="Canvas%3asetWrap.html" title="Canvas:setWrap">Canvas:setWrap</a></td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">Sets the wrapping properties of a Canvas.</td><td style="padding: 1px 5px 1px 5px; background-color: #f8fff8; vertical-align: top;"><img alt="Added since" src="https://love2d.org/w/images/a/a7/Add.png" width="8" height="11" /> <a href="https://love2d.org/wiki/0.8.0" title="0.8.0">0.8.0</a> </td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">
</td></tr>

<tr>
<td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;"><a href="Object%3atype.html" title="Object:type">Object:type</a></td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">Gets the type of the object as a string.</td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;"> </td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">
</td></tr>

<tr>
<td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;"><a href="Object%3atypeOf.html" title="Object:typeOf">Object:typeOf</a></td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">Checks whether an object is of a certain type.</td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;"> </td><td style="padding: 1px 5px 1px 5px; background-color: #ffffff; vertical-align: top;">
</td></tr>

</table>
<h2> <span class="mw-headline" id="Supertypes"> Supertypes </span></h2>
<ul><li> <a href="Texture.html" title="Texture">Texture</a>
</li><li> <a href="Drawable.html" title="Drawable">Drawable</a>
</li><li> <a href="Object.html" title="Object">Object</a>
</li></ul>
<h2> <span class="mw-headline" id="Examples"> Examples </span></h2>
<h3> <span class="mw-headline" id="Drawing_something_to_the_Canvas_and_then_the_Canvas_itself."> Drawing something to the Canvas and then the Canvas itself. </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">&#40;</span><span class="br0">&#41;</span><br />&nbsp; &nbsp; canvas <span class="sy0">=</span> love.graphics.newCanvas<span class="br0">&#40;</span><span class="nu0">800</span>, <span class="nu0">600</span><span class="br0">&#41;</span><br /><br />&nbsp; &nbsp; <span class="co1">-- Rectangle is drawn to the canvas with the alpha blend mode.</span><br />&nbsp; &nbsp; love.graphics.setCanvas<span class="br0">&#40;</span>canvas<span class="br0">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; canvas:clear<span class="br0">&#40;</span><span class="br0">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; love.graphics.setBlendMode<span class="br0">&#40;</span><span class="st0">'alpha'</span><span class="br0">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; love.graphics.setColor<span class="br0">&#40;</span><span class="nu0">255</span>, <span class="nu0">0</span>, <span class="nu0">0</span>, <span class="nu0">128</span><span class="br0">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; love.graphics.rectangle<span class="br0">&#40;</span><span class="st0">'fill'</span>, <span class="nu0">0</span>, <span class="nu0">0</span>, <span class="nu0">100</span>, <span class="nu0">100</span><span class="br0">&#41;</span><br />&nbsp; &nbsp; love.graphics.setCanvas<span class="br0">&#40;</span><span class="br0">&#41;</span><br /><span class="kw1">end</span><br /><br /><span class="kw1">function</span> love.draw<span class="br0">&#40;</span><span class="br0">&#41;</span><br />&nbsp; &nbsp; love.graphics.setColor<span class="br0">&#40;</span><span class="nu0">255</span>, <span class="nu0">255</span>, <span class="nu0">255</span>, <span class="nu0">255</span><span class="br0">&#41;</span><br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <span class="co1">-- The rectangle from the Canvas was already alpha blended.</span><br />&nbsp; &nbsp; <span class="co1">-- Use the premultiplied blend mode when drawing the Canvas itself to prevent another blending.</span><br />&nbsp; &nbsp; love.graphics.setBlendMode<span class="br0">&#40;</span><span class="st0">'premultiplied'</span><span class="br0">&#41;</span><br />&nbsp; &nbsp; love.graphics.draw<span class="br0">&#40;</span>canvas<span class="br0">&#41;</span><br />&nbsp; &nbsp; <span class="co1">-- Observe the difference if the Canvas is drawn with the alpha blend mode instead.</span><br />&nbsp; &nbsp; love.graphics.setBlendMode<span class="br0">&#40;</span><span class="st0">'alpha'</span><span class="br0">&#41;</span><br />&nbsp; &nbsp; love.graphics.draw<span class="br0">&#40;</span>canvas, <span class="nu0">100</span>, <span class="nu0">0</span><span class="br0">&#41;</span><br /><br />&nbsp; &nbsp; <span class="co1">-- Rectangle is drawn directly to the screen with the alpha blend mode.</span><br />&nbsp; &nbsp; love.graphics.setBlendMode<span class="br0">&#40;</span><span class="st0">'alpha'</span><span class="br0">&#41;</span><br />&nbsp; &nbsp; love.graphics.setColor<span class="br0">&#40;</span><span class="nu0">255</span>, <span class="nu0">0</span>, <span class="nu0">0</span>, <span class="nu0">128</span><span class="br0">&#41;</span><br />&nbsp; &nbsp; love.graphics.rectangle<span class="br0">&#40;</span><span class="st0">'fill'</span>, <span class="nu0">200</span>, <span class="nu0">0</span>, <span class="nu0">100</span>, <span class="nu0">100</span><span class="br0">&#41;</span><br /><span class="kw1">end</span></div></div>
<h2> <span class="mw-headline" id="See_Also"> See Also </span></h2>
<ul><li> <a href="love.graphics.html" title="love.graphics">love.graphics</a>
</li><li> <a href="love.graphics.setCanvas.html" title="love.graphics.setCanvas">love.graphics.setCanvas</a>
</li><li> <a href="love.graphics.isSupported.html" title="love.graphics.isSupported">love.graphics.isSupported</a>
</li></ul>
<p><br />
</p>
<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=Canvas_(Dansk)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Dansk) (page does not exist)">Dansk</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(Deutsch)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Deutsch) (page does not exist)">Deutsch</a>&nbsp;&ndash;
<strong class="selflink">English</strong>&nbsp;&ndash; 
<a href="https://love2d.org/w/index.php?title=Canvas_(Espa%C3%B1ol)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Español) (page does not exist)">Español</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(Fran%C3%A7ais)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Français) (page does not exist)">Français</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(Indonesia)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Indonesia) (page does not exist)">Indonesia</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(Italiano)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Italiano) (page does not exist)">Italiano</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(Lietuvi%C5%A1kai)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Lietuviškai) (page does not exist)">Lietuviškai</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(Magyar)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Magyar) (page does not exist)">Magyar</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(Nederlands)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Nederlands) (page does not exist)">Nederlands</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(Polski)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Polski) (page does not exist)">Polski</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(Portugu%C3%AAs)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Português) (page does not exist)">Português</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(Rom%C3%A2n%C4%83)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Română) (page does not exist)">Română</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(Slovensk%C3%BD)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Slovenský) (page does not exist)">Slovenský</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(Suomi)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Suomi) (page does not exist)">Suomi</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(Svenska)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Svenska) (page does not exist)">Svenska</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(T%C3%BCrk%C3%A7e)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Türkçe) (page does not exist)">Türkçe</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(%C4%8Cesky)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Česky) (page does not exist)">Česky</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(%CE%95%CE%BB%CE%BB%CE%B7%CE%BD%CE%B9%CE%BA%CE%AC)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Ελληνικά) (page does not exist)">Ελληνικά</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(%D0%91%D1%8A%D0%BB%D0%B3%D0%B0%D1%80%D1%81%D0%BA%D0%B8)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Български) (page does not exist)">Български</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(%D0%A0%D1%83%D1%81%D1%81%D0%BA%D0%B8%D0%B9)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Русский) (page does not exist)">Русский</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(%D0%A1%D1%80%D0%BF%D1%81%D0%BA%D0%B8)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Српски) (page does not exist)">Српски</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(%D0%A3%D0%BA%D1%80%D0%B0%D1%97%D0%BD%D1%81%D1%8C%D0%BA%D0%B0)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (Українська) (page does not exist)">Українська</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(%D7%A2%D7%91%D7%A8%D7%99%D7%AA)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (עברית) (page does not exist)">עברית</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(%E0%B9%84%E0%B8%97%E0%B8%A2)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (ไทย) (page does not exist)">ไทย</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(%E6%97%A5%E6%9C%AC%E8%AA%9E)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (日本語) (page does not exist)">日本語</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(%E6%AD%A3%E9%AB%94%E4%B8%AD%E6%96%87)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (正體中文) (page does not exist)">正體中文</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (简体中文) (page does not exist)">简体中文</a>&nbsp;&ndash;
<a href="https://love2d.org/wiki/Canvas_(Ti%E1%BA%BFng_Vi%E1%BB%87t)" title="Canvas (Tiếng Việt)">Tiếng Việt</a>&nbsp;&ndash;
<a href="https://love2d.org/w/index.php?title=Canvas_(%ED%95%9C%EA%B5%AD%EC%96%B4)&amp;action=edit&amp;redlink=1" class="new" title="Canvas (한국어) (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: 755/1000000
Post-expand include size: 21546/2097152 bytes
Template argument size: 3010/2097152 bytes
Expensive parser function count: 0/100
-->

<!-- Saved in parser cache with key love2d_wiki:pcache:idhash:2212-0!1!0!!en!2!edit=0 and timestamp 20140410065501 -->
<div class="printfooter">
Retrieved from "<a href="https://www.love2d.org/wiki/Canvas">https://www.love2d.org/wiki/Canvas</a>"</div>
			<div id='catlinks' class='catlinks'><div id="mw-normal-catlinks"><a href="https://love2d.org/wiki/Special:Categories" title="Special:Categories">Category</a>: <span dir='ltr'><a href="https://love2d.org/wiki/Category:Types" title="Category:Types">Types</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&amp;returnto=Canvas" 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" />&nbsp;
				<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/Canvas" 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/Canvas" 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=Canvas&amp;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=Canvas&amp;oldid=12769" 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/Canvas" title="Special:Browse/Canvas">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 30 January 2014, at 07:34.</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.272 secs. --></body></html>