forked from jdf/processing-py-site
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPGraphics.xml
More file actions
33 lines (25 loc) · 1.01 KB
/
PGraphics.xml
File metadata and controls
33 lines (25 loc) · 1.01 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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>PGraphics</name>
<category>Rendering</category>
<subcategory></subcategory>
<type></type>
<example>
<image />
<code><![CDATA[
size(100, 100)
pg = createGraphics(40, 40)
pg.beginDraw()
pg.background(100)
pg.stroke(255)
pg.line(20, 20, mouseX, mouseY)
pg.endDraw()
image(pg, 9, 30)
image(pg, 51, 30)
]]></code>
</example>
<description><![CDATA[
Main graphics and rendering context, as well as the base API implementation for processing "core". Use this class if you need to draw into an off-screen graphics buffer. A PGraphics object can be constructed with the <b>createGraphics()</b> function. The <b>beginDraw()</b> and <b>endDraw()</b> methods (see above example) are necessary to set up the buffer and to finalize it. The fields and methods for this class are extensive. For a complete list, visit the <a href="http://processing.github.io/processing-javadocs/core/">developer's reference.</a>
]]></description>
<related>createGraphics</related>
</root>