forked from processing-js/processing-js.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPGraphics_endDraw_.html
More file actions
60 lines (53 loc) · 1.16 KB
/
Copy pathPGraphics_endDraw_.html
File metadata and controls
60 lines (53 loc) · 1.16 KB
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
---
layout: default
---
<table cellpadding="0" cellspacing="0" border="0" class="ref-item">
<tr>
<th scope="row">Class</th>
<td>PGraphics</td>
</tr>
<tr class="name-row">
<th scope="row">Name</th>
<td><h3>endDraw()</h3></td>
</tr>
<tr class="">
<th scope="row">Examples</th>
<td><div class="example"><pre class="">PGraphics pg;
void setup() {
size(100, 100);
pg = createGraphics(80, 80, P2D);
pg.beginDraw();
pg.background(102);
pg.stroke(255);
pg.line(20, 20, 80, 80);
pg.endDraw();
noLoop();
}
void draw() {
image(pg, 10, 10);
}</pre></div></td>
</tr>
<tr class="">
<th scope="row">Description</th>
<td><p>Finalizes the rendering of a PGraphics object so that it can be shown on screen.</p></td>
</tr>
<tr class="">
<th scope="row">Syntax</th>
<td><pre><kbd>graphics</kbd>.endDraw()</pre></td>
</tr>
<tr class="">
<th scope="row">Parameters</th>
<td>
<table cellpadding="0" cellspacing="0" border="0">
<tr class="">
<th scope="row">graphics</th>
<td>any object of the type PGraphics</td>
</tr>
</table>
</td>
</tr>
<tr class="">
<th scope="row">Usage</th>
<td>Web & Application</td>
</tr>
</table>