A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | http://quil.info/api | http://processingjs.org/reference/ | https://p5js.org/reference/ | Checked snippets | Notes | ||||||||||||||||||||||
2 | Color | ||||||||||||||||||||||||||
3 | Creating & Reading | alpha | alpha() | alpha() | yes | adapted | |||||||||||||||||||||
4 | blend-color | blendColor() | yes | removed | |||||||||||||||||||||||
5 | blue | blue() | blue() | yes | adapted | ||||||||||||||||||||||
6 | brightness | brightness() | brightness() | yes | adapted | ||||||||||||||||||||||
7 | color | color() | color() | yes | no changes necessary | ||||||||||||||||||||||
8 | color-mode | colorMode() | yes | added new mode :hsl | |||||||||||||||||||||||
9 | current-fill | no changes necessary | |||||||||||||||||||||||||
10 | current-stroke | no changes necessary | |||||||||||||||||||||||||
11 | green | green() | green() | yes | adapted | ||||||||||||||||||||||
12 | hue | hue() | hue() | yes | adapted | ||||||||||||||||||||||
13 | lerp-color | lerpColor() | lerpColor() | yes | adapted | ||||||||||||||||||||||
14 | lightness() | yes | added | ||||||||||||||||||||||||
15 | red | red() | red() | yes | adapted | ||||||||||||||||||||||
16 | saturation | saturation() | saturation() | yes | adapted | ||||||||||||||||||||||
17 | Setting | background | background() | background() | yes | no changes necessary | |||||||||||||||||||||
18 | background-image | yes | no changes necessary | ||||||||||||||||||||||||
19 | clear | clear() | yes | added | |||||||||||||||||||||||
20 | fill | fill() | fill() | yes | no changes necessary | ||||||||||||||||||||||
21 | no-fill | noFill() | noFill() | yes | no changes necessary | ||||||||||||||||||||||
22 | no-stroke | noStroke() | noStroke() | yes | no changes necessary | ||||||||||||||||||||||
23 | stroke | stroke() | stroke() | yes | no changes necessary | ||||||||||||||||||||||
24 | Utility Macros | with-fill | yes | no changes necessary | |||||||||||||||||||||||
25 | with-stroke | yes | no changes necessary | ||||||||||||||||||||||||
26 | Typography | ||||||||||||||||||||||||||
27 | Attributes | text-align | textAlign() | textAlign() | yes | adapted | |||||||||||||||||||||
28 | text-leading | textLeading() | textLeading() | yes | no changes necessary | ||||||||||||||||||||||
29 | text-mode | textMode() | yes | removed | |||||||||||||||||||||||
30 | text-size | textSize() | textSize() | yes | no changes necessary | ||||||||||||||||||||||
31 | text-style | textStyle() | yes | added | |||||||||||||||||||||||
32 | text-width | textWidth() | textWidth() | yes | no changes necessary | ||||||||||||||||||||||
33 | Loading & Displaying | available-fonts | PFont.list() | yes | removed | ||||||||||||||||||||||
34 | create-font | createFont() | yes | removed | |||||||||||||||||||||||
35 | font-available? | yes | no changes necessary | ||||||||||||||||||||||||
36 | load-font | loadFont() | loadFont() | yes | no changes necessary | ||||||||||||||||||||||
37 | text | text() | text() | yes | need to adapt snippet | ||||||||||||||||||||||
38 | text-char | yes | no changes necessary | ||||||||||||||||||||||||
39 | text-font | textFont() | textFont() | yes | adapted | ||||||||||||||||||||||
40 | text-num | yes | no changes necessary | ||||||||||||||||||||||||
41 | Metrics | text-ascent | textAscent() | textAscent() | yes | no changes necessary | |||||||||||||||||||||
42 | text-descent | textDescent() | textDescent() | yes | no changes necessary | ||||||||||||||||||||||
43 | Image | ||||||||||||||||||||||||||
44 | create-image | createImage() | createImage() | yes | signature change | ||||||||||||||||||||||
45 | resize | PImage.resize() | Image.resize() | yes | adapted snippet | ||||||||||||||||||||||
46 | saveCanvas() | not supported | |||||||||||||||||||||||||
47 | saveFrames() | not supported | |||||||||||||||||||||||||
48 | Loading & Displaying | image | image() | image() | yes | signature change - added overload - chose not to support overload to stay in sync with processing | |||||||||||||||||||||
49 | image-mode | imageMode() | imageMode() | yes | adapt | ||||||||||||||||||||||
50 | load-image | loadImage() | loadImage() | yes | signature change - added overload with success and failure callbacks - overload not supported | ||||||||||||||||||||||
51 | mask-image | PImage.mask() | Image.mask() | yes | added | ||||||||||||||||||||||
52 | no-tint | noTint() | noTint() | yes | no changes necessary | ||||||||||||||||||||||
53 | request-image | requestImage() | removed from both clj and cljs, use load-image instead | ||||||||||||||||||||||||
54 | tint | tint() | tint() | yes | no changes necessary | ||||||||||||||||||||||
55 | Pixels | blend | blend() | blend() | no :( cljs is not working | adapted - in `cljs` `(q/background)` doesn't work when `blend` is used in the snippet. Not sure why. | |||||||||||||||||||||
56 | copy | copy() | copy() | yes | adapted | ||||||||||||||||||||||
57 | display-filter | filter() | filter() | yes | adapted | ||||||||||||||||||||||
58 | filter-shader | yes | no changes necessary | ||||||||||||||||||||||||
59 | get-pixel | get() | get() | yes | no changes necessary | ||||||||||||||||||||||
60 | image-filter | filter() | filter() | yes | adapted | ||||||||||||||||||||||
61 | pixels | loadPixels() | loadPixels() | yes | adapt snippet pixels-update-pixels | ||||||||||||||||||||||
62 | pixels | pixels | pixels | yes | no changes necessary | ||||||||||||||||||||||
63 | set-image | set() | set() | yes | no changes necessary | ||||||||||||||||||||||
64 | set-pixel | set() | set() | yes | adapt | ||||||||||||||||||||||
65 | update-pixels | updatePixels() | updatePixels() | yes | adapt snippets | ||||||||||||||||||||||
66 | Rendering | blend-mode | blendMode() | yes | added | ||||||||||||||||||||||
67 | create-graphics | createGraphics() | createGraphics() | yes | signature change - path no longer supported | ||||||||||||||||||||||
68 | createCanvas() | createCanvas() replaced size() | |||||||||||||||||||||||||
69 | Transform | ||||||||||||||||||||||||||
70 | apply-matrix | applyMatrix() | applyMatrix() | yes | signature change | ||||||||||||||||||||||
71 | pop-matrix | popMatrix() | pop() | yes | pop() replaced popMatrix() | ||||||||||||||||||||||
72 | print-matrix | printMatrix() | removed | ||||||||||||||||||||||||
73 | push-matrix | pushMatrix() | push() | yes | push() replaced pushMatrix() | ||||||||||||||||||||||
74 | reset-matrix | resetMatrix() | resetMatrix() | yes | no changes necessary | ||||||||||||||||||||||
75 | rotate | rotate() | rotate() | yes | adapt | ||||||||||||||||||||||
76 | rotate-x | rotateX() | rotateX() | yes | no changes necessary | ||||||||||||||||||||||
77 | rotate-y | rotateY() | rotateY() | yes | no changes necessary | ||||||||||||||||||||||
78 | rotate-z | rotateZ() | rotateZ() | yes | no changes necessary | ||||||||||||||||||||||
79 | scale | scale() | scale() | yes | signature change - added overload - chose not to support overload to stay in sync with processing | ||||||||||||||||||||||
80 | shear-x | shearX() | yes | added, no changes necessary | |||||||||||||||||||||||
81 | shear-y | shearY() | yes | added, no changes necessary | |||||||||||||||||||||||
82 | translate | translate() | translate() | yes | no changes necessary | ||||||||||||||||||||||
83 | Utility Macros | with-rotation | yes | adapt snippets | |||||||||||||||||||||||
84 | with-translation | yes | adapt snippets | ||||||||||||||||||||||||
85 | Rendering | ||||||||||||||||||||||||||
86 | clip | yes | no changes necessary | ||||||||||||||||||||||||
87 | hint | hint() | yes | removed | |||||||||||||||||||||||
88 | no-clip | yes | no changes necessary | ||||||||||||||||||||||||
89 | with-graphics | yes | removed beginDraw and endDraw for cljs | ||||||||||||||||||||||||
90 | resizeCanvas() | not supported | |||||||||||||||||||||||||
91 | noCanvas() | not supported | |||||||||||||||||||||||||
92 | setAttributes() | not supported | |||||||||||||||||||||||||
93 | Shaders | load-shader | loadShader() | yes | added but parameter order different to processing - needs adapting | ||||||||||||||||||||||
94 | reset-shader | yes | no changes necessary | ||||||||||||||||||||||||
95 | shader | shader() | yes | added but kind parameter not supported by p5js | |||||||||||||||||||||||
96 | Math | ||||||||||||||||||||||||||
97 | Calculation | abs | abs() | abs() | yes | no changes necessary | |||||||||||||||||||||
98 | ceil | ceil() | ceil() | yes | no changes necessary | ||||||||||||||||||||||
99 | constrain | constrain() | constrain() | yes | no changes necessary | ||||||||||||||||||||||
100 | dist | dist() | dist() | yes | no changes necessary |