forked from processing/processing-web-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbeginRecord.xml
More file actions
executable file
·62 lines (43 loc) · 1.25 KB
/
Copy pathbeginRecord.xml
File metadata and controls
executable file
·62 lines (43 loc) · 1.25 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
61
62
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<root>
<name>beginRecord()</name>
<category>Output</category>
<subcategory>Files</subcategory>
<usage>Application</usage>
<example>
<image></image>
<code><![CDATA[
import processing.pdf.*;
void setup() {
size(400, 400);
beginRecord(PDF, "everything.pdf");
}
void draw() {
ellipse(mouseX, mouseY, 10, 10);
}
void mousePressed() {
endRecord();
exit();
}
]]></code>
</example>
<description><![CDATA[Opens a new file and all subsequent drawing functions are echoed to this file as well as the display window. The <b>beginRecord()</b> function requires two parameters, the first is the renderer and the second is the file name. This function is always used with <b>endRecord()</b> to stop the recording process and close the file.]]></description>
<syntax><![CDATA[
beginRecord(<kbd>renderer</kbd>, <kbd>filename</kbd>)
]]></syntax>
<parameter>
<label>renderer</label>
<description><![CDATA[For example, PDF or DXF]]></description>
</parameter>
<parameter>
<label>filename</label>
<description><![CDATA[String: filename for output]]></description>
</parameter>
<returns></returns>
<related>
endRecord()
</related>
<availability>1.0</availability>
<type>Function</type>
<partof>Core</partof>
</root>