forked from processing-js/processing-js.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocessing-helper.html
More file actions
35 lines (29 loc) · 863 Bytes
/
Copy pathprocessing-helper.html
File metadata and controls
35 lines (29 loc) · 863 Bytes
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
---
layout: default
---
<style>
canvas#sketch {
width: 100px;
height: 100px;
border: 1px solid
}
textarea#code, textarea#output {
width: 90%;
}
</style>
<h2>Processing Helper</h2>
<p>Paste your Processing code below and execute whichever options you require:</p>
<h2>Processing Code</h2>
<textarea rows="20" cols="80" id="code"></textarea>
<br>
<input onclick="runSketch();" type="button" value="Run"></input>
<input onclick="convertToJS();" type="button" value="Convert to JS"></input>
<input onclick="generateDataURI();" type="button" value="Generate Data URI"></input>
<h2>Canvas</h2>
<div id="sketch-container">
<canvas id="sketch"></canvas>
</div>
<h2>Output</h2>
<textarea rows="20" cols="80" id="output" readonly="readonly">None.</textarea>
<script src="jsbeautify.js"></script>
<script src="processing-helper.js"></script>