p5js "emulation". See the official p5js documentation for reference.
This only lists the available function.
Not all function actually DO things (e.g. strokeWeight()).
I only did minimal testing, so there might be bugs...
**Note: p5js must be activated by Include("p5") before using it.**
Members
# inner ADD
# inner BASELINE
# inner BLEND
# inner BOTTOM
# inner BURN
# inner CENTER
# inner CENTER
# inner CHORD
# inner CLOSE
# inner CORNER
# inner CORNERS
# inner DARKEST
# inner DEG_TO_RAD
# inner DEGREES
# inner DIFFERENCE
# inner displayHeight
# inner displayWidth
# inner DODGE
# inner EXCLUSION
# inner focused
# inner frameCount
# inner HALF_PI
# inner HARD_LIGHT
# inner height
# inner HSB
# inner HSL
# inner key
# inner keyCode
# inner keyIsPressed
# inner LEFT
# inner LIGHTEST
# inner LINES
# inner MIDDLE
# inner mouseButton
# inner mouseIsPressed
# inner mouseX
# inner mouseY
# inner MULTIPLY
# inner NO_COLOR
# inner OPEN
# inner OVERLAY
# inner PI
# inner PIE
# inner pmouseX
# inner pmouseY
# inner POINTS
# inner pwinMouseX
# inner pwinMouseY
# inner QUARTER_PI
# inner RAD_TO_DEG
# inner RADIANS
# inner RADIUS
# inner REMOVE
# inner REPLACE
# inner RGB
# inner RIGHT
# inner SCREEN
# inner SOFT_LIGHT
# inner SUBTRACT
# inner TAU
# inner TOP
# inner TRIANGLES
# inner TWO_PI
# inner width
# inner windowHeight
# inner windowWidth
# inner winMouseX
# inner winMouseY
Methods
# inner arc(x, y, w, h, start, end, style)
Parameters:
Name | Type | Description |
---|---|---|
x |
*
|
|
y |
*
|
|
w |
*
|
|
h |
*
|
|
start |
*
|
|
end |
*
|
|
style |
*
|
# inner arrayCopy(src, srcPosition, dst, dstPosition, length)
Parameters:
Name | Type | Description |
---|---|---|
src |
*
|
|
srcPosition |
*
|
|
dst |
*
|
|
dstPosition |
*
|
|
length |
*
|
# inner background()
# inner clear()
# inner color()
# inner colorMode(mode, max1, max2, max3, maxA)
Parameters:
Name | Type | Description |
---|---|---|
mode |
*
|
|
max1 |
*
|
|
max2 |
*
|
|
max3 |
*
|
|
maxA |
*
|
# inner createCanvas()
# inner cursor()
# inner day()
# inner displayDensity()
# inner dist()
# inner exit()
# inner fill()
# inner fullScreen()
# inner getFrameRate()
# inner getURL()
# inner getURLParams()
# inner getURLPath()
# inner hour()
# inner loop()
# inner map(n, start1, stop1, start2, stop2, withinBounds)
Parameters:
Name | Type | Description |
---|---|---|
n |
*
|
|
start1 |
*
|
|
stop1 |
*
|
|
start2 |
*
|
|
stop2 |
*
|
|
withinBounds |
*
|
# inner max()
# inner millis()
# inner min()
# inner minute()
# inner month()
# inner nfp()
# inner nfs()
# inner noCursor()
# inner noFill()
# inner noLoop()
# inner noSmooth()
# inner noStroke()
# inner noTint()
# inner pixelDensity()
# inner pop()
# inner push()
# inner quad(x1, y1, x2, y2, x3, y3, x4, y4)
Parameters:
Name | Type | Description |
---|---|---|
x1 |
*
|
|
y1 |
*
|
|
x2 |
*
|
|
y2 |
*
|
|
x3 |
*
|
|
y3 |
*
|
|
x4 |
*
|
|
y4 |
*
|
# inner redraw()
# inner resetMatrix()
# inner second()
# inner settings()
# inner size()
# inner smooth()
# inner stroke()
# inner tint()
# inner triangle(x1, y1, x2, y2, x3, y3)
Parameters:
Name | Type | Description |
---|---|---|
x1 |
*
|
|
y1 |
*
|
|
x2 |
*
|
|
y2 |
*
|
|
x3 |
*
|
|
y3 |
*
|