Skip to content
Open
Changes from all commits
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
6 changes: 3 additions & 3 deletions src/image/p5.Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ p5.Image = class {
*/
pixelDensity(density) {
if (typeof density !== 'undefined') {
// Setter: set the density and handle resize
// Setter: set the density and handle resize
if (density <= 0) {
const errorObj = {
type: 'INVALID_VALUE',
Expand All @@ -334,7 +334,7 @@ p5.Image = class {

return this; // Return the image instance for chaining if needed
} else {
// Getter: return the default density
// Getter: return the default density
return this._pixelDensity;
}
}
Expand Down Expand Up @@ -1808,7 +1808,7 @@ p5.Image = class {
props.displayIndex = index;
this.drawingContext.putImageData(props.frames[index].image, 0, 0);
} else {
console.log(
p5._friendlyError(
'Cannot set GIF to a frame number that is higher than total number of frames or below zero.'
);
}
Expand Down