Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix FES check for image() not accepting some valid types
  • Loading branch information
limzykenneth committed May 13, 2025
commit a814bd140b9e9081676cc9174343391f055ee891
75 changes: 17 additions & 58 deletions docs/parameterData.json
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@
"image": {
"overloads": [
[
"p5.Image|p5.Element|p5.Texture|p5.Framebuffer|p5.FramebufferTexture",
"p5.Image|p5.Element|p5.Texture|p5.Framebuffer|p5.FramebufferTexture|p5.Renderer|p5.Graphics",
"Number",
"Number",
"Number?",
Expand Down Expand Up @@ -1431,13 +1431,6 @@
]
]
},
"createMatrix": {
"overloads": [
[
"Number[]"
]
]
},
"noise": {
"overloads": [
[
Expand Down Expand Up @@ -1856,14 +1849,23 @@
},
"bezierOrder": {
"overloads": [
[],
[
"Number"
]
],
[]
]
},
"splineVertex": {
"overloads": [
[
"Number",
"Number"
],
[
"Number",
"Number",
"Number?"
],
[
"Number",
"Number",
Expand All @@ -1881,21 +1883,21 @@
},
"splineProperty": {
"overloads": [
[
"String"
],
[
"String",
null
],
[
"String"
]
]
},
"splineProperties": {
"overloads": [
[],
[
"Object"
]
],
[]
]
},
"vertex": {
Expand Down Expand Up @@ -1955,19 +1957,6 @@
]
]
},
"curveVertex": {
"overloads": [
[
"Number",
"Number"
],
[
"Number",
"Number",
"Number?"
]
]
},
"endShape": {
"overloads": [
[
Expand Down Expand Up @@ -2755,36 +2744,6 @@
]
]
},
"parseObj": {
"overloads": [
[]
]
},
"parseSTL": {
"overloads": [
[]
]
},
"isBinary": {
"overloads": [
[]
]
},
"matchDataViewAt": {
"overloads": [
[]
]
},
"parseBinarySTL": {
"overloads": [
[]
]
},
"parseASCIISTL": {
"overloads": [
[]
]
},
"model": {
"overloads": [
[
Expand Down
2 changes: 1 addition & 1 deletion src/image/loading_displaying.js
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ function loadingDisplaying(p5, fn){
* are set to `CENTER`.
*
* @method image
* @param {p5.Image|p5.Element|p5.Texture|p5.Framebuffer|p5.FramebufferTexture} img image to display.
* @param {p5.Image|p5.Element|p5.Texture|p5.Framebuffer|p5.FramebufferTexture|p5.Renderer|p5.Graphics} img image to display.
* @param {Number} x x-coordinate of the top-left corner of the image.
* @param {Number} y y-coordinate of the top-left corner of the image.
* @param {Number} [width] width to draw the image.
Expand Down