You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SCHEMA.md
+22-11Lines changed: 22 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
```
5
5
pde:///path/to/sketch.pde
6
6
```
7
+
Attention: The 3rd slash is import to trigger local files.
7
8
8
9
## Sketch Operations
9
10
@@ -17,27 +18,37 @@ pde://sketch/new
17
18
pde://sketch/base64/<base64_encoded_content>
18
19
```
19
20
Optional query parameters:
20
-
-`data`: Comma-separated URLs of data files to download
21
-
-`code`: Comma-separated URLs of code files to download
22
-
-`pde`: Comma-separated URLs of Processing sketch files to download
23
-
-`mode`: Processing mode identifier
21
+
-`data`: Comma-separated {File} that should be placed in the data folder
22
+
-`code`: Comma-separated {File} that should be placed in the code folder
23
+
-`pde`: Comma-separated {File} that should be placed in the sketch folder
24
+
-`mode`: Processing mode identifier, e.g. `processing.mode.android.AndroidMode` You can find this in the sketch.properties file when switching modes on a sketch
[Click to here to test](pde://sketch/url/github.com/processing/processing-examples/raw/refs/heads/main/Basics/Arrays/Array/Array.pde)
32
+
29
33
Supports the same query parameters as base64 endpoint.
30
34
Optional query parameters:
31
-
32
-
-`data`: Comma-separated URLs of data files to download
33
-
-`code`: Comma-separated URLs of code files to download
34
-
-`pde`: Comma-separated URLs of Processing sketch files to download
35
-
-`mode`: Processing mode identifier
35
+
-`data`: Comma-separated {File} that should be placed in the data folder
36
+
-`code`: Comma-separated {File} that should be placed in the code folder
37
+
-`pde`: Comma-separated {File} that should be placed in the sketch folder
38
+
-`mode`: Processing mode identifier, e.g. `processing.mode.android.AndroidMode` You can find this in the sketch.properties file when switching modes on a sketch
[Click to here to test](pde://sketch/url/github.com/processing/processing-examples/raw/refs/heads/main/Basics/Image/Alphamask/Alphamask.pde?data=data/moonwalk.jpg,data/mask.jpg,processing.org/img/processing-web.png)
46
+
47
+
#### A {File}
48
+
A {File} is a string that represents a file in the sketch and has a couple of options, it always starts with the filename followed by a colon, e.g. `file.pde:example.com/path/to/file.pde`. The following options are available:
49
+
-`example.com/path/to/file.pde`: A remote file that should be downloaded
50
+
-`file.pde`: A remote file that should be downloaded with a path relative to the sketch (only available in loading the sketch from url)
0 commit comments