ABCDEFGHIJKLMNOPQRSTUVWXYZAA
1
http://quil.info/api
http://processingjs.org/reference/
https://p5js.org/reference/
Checked snippetsNotes
2
Color
3
Creating & Readingalphaalpha()alpha()yesadapted
4
blend-colorblendColor()yesremoved
5
blueblue()blue()yesadapted
6
brightnessbrightness()brightness()yesadapted
7
colorcolor()color()yesno changes necessary
8
color-modecolorMode()yesadded new mode :hsl
9
current-fillno changes necessary
10
current-strokeno changes necessary
11
greengreen()green()yesadapted
12
huehue()hue()yesadapted
13
lerp-colorlerpColor()lerpColor()yesadapted
14
lightness()yesadded
15
redred()red()yesadapted
16
saturationsaturation()saturation()yesadapted
17
Settingbackgroundbackground()background()yesno changes necessary
18
background-imageyesno changes necessary
19
clearclear()yesadded
20
fillfill()fill()yesno changes necessary
21
no-fillnoFill()noFill()yesno changes necessary
22
no-strokenoStroke()noStroke()yesno changes necessary
23
strokestroke()stroke()yesno changes necessary
24
Utility Macroswith-fillyesno changes necessary
25
with-strokeyesno changes necessary
26
Typography
27
Attributestext-aligntextAlign()textAlign()yesadapted
28
text-leadingtextLeading()textLeading()yesno changes necessary
29
text-modetextMode()yesremoved
30
text-sizetextSize()textSize()yesno changes necessary
31
text-styletextStyle()yesadded
32
text-widthtextWidth()textWidth()yesno changes necessary
33
Loading & Displayingavailable-fontsPFont.list()yesremoved
34
create-fontcreateFont()yesremoved
35
font-available?yesno changes necessary
36
load-fontloadFont()loadFont()yesno changes necessary
37
texttext()text()yesneed to adapt snippet
38
text-charyesno changes necessary
39
text-fonttextFont()textFont()yesadapted
40
text-numyesno changes necessary
41
Metricstext-ascenttextAscent()textAscent()yesno changes necessary
42
text-descenttextDescent()textDescent()yesno changes necessary
43
Image
44
create-imagecreateImage()createImage()yessignature change
45
resizePImage.resize()Image.resize()yesadapted snippet
46
saveCanvas()not supported
47
saveFrames()not supported
48
Loading & Displayingimageimage()image()yessignature change - added overload - chose not to support overload to stay in sync with processing
49
image-modeimageMode()imageMode()yesadapt
50
load-imageloadImage()loadImage()yessignature change - added overload with success and failure callbacks - overload not supported
51
mask-imagePImage.mask()Image.mask()yesadded
52
no-tintnoTint()noTint()yesno changes necessary
53
request-imagerequestImage()removed from both clj and cljs, use load-image instead
54
tinttint()tint()yesno changes necessary
55
Pixelsblendblend()blend()no :( cljs is not workingadapted - in `cljs` `(q/background)` doesn't work when `blend` is used in the snippet. Not sure why.
56
copycopy()copy()yesadapted
57
display-filterfilter()filter()yesadapted
58
filter-shaderyesno changes necessary
59
get-pixelget()get()yesno changes necessary
60
image-filterfilter()filter()yesadapted
61
pixelsloadPixels()loadPixels()yesadapt snippet pixels-update-pixels
62
pixelspixelspixelsyesno changes necessary
63
set-imageset()set()yesno changes necessary
64
set-pixelset()set()yesadapt
65
update-pixelsupdatePixels()updatePixels()yesadapt snippets
66
Renderingblend-modeblendMode()yesadded
67
create-graphicscreateGraphics()createGraphics()yessignature change - path no longer supported
68
createCanvas()createCanvas() replaced size()
69
Transform
70
apply-matrixapplyMatrix()applyMatrix()yessignature change
71
pop-matrixpopMatrix()pop()yespop() replaced popMatrix()
72
print-matrixprintMatrix()removed
73
push-matrixpushMatrix()push()yespush() replaced pushMatrix()
74
reset-matrixresetMatrix()resetMatrix()yesno changes necessary
75
rotaterotate()rotate()yesadapt
76
rotate-xrotateX()rotateX()yesno changes necessary
77
rotate-yrotateY()rotateY()yesno changes necessary
78
rotate-zrotateZ()rotateZ()yesno changes necessary
79
scalescale()scale()yessignature change - added overload - chose not to support overload to stay in sync with processing
80
shear-xshearX()yesadded, no changes necessary
81
shear-yshearY()yesadded, no changes necessary
82
translatetranslate()translate()yesno changes necessary
83
Utility Macroswith-rotationyesadapt snippets
84
with-translationyesadapt snippets
85
Rendering
86
clipyesno changes necessary
87
hinthint()yesremoved
88
no-clipyesno changes necessary
89
with-graphicsyesremoved beginDraw and endDraw for cljs
90
resizeCanvas()not supported
91
noCanvas()not supported
92
setAttributes()not supported
93
Shadersload-shaderloadShader()yesadded but parameter order different to processing - needs adapting
94
reset-shaderyesno changes necessary
95
shadershader()yesadded but kind parameter not supported by p5js
96
Math
97
Calculationabsabs()abs()yesno changes necessary
98
ceilceil()ceil()yesno changes necessary
99
constrainconstrain()constrain()yesno changes necessary
100
distdist()dist()yesno changes necessary