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
3 changes: 3 additions & 0 deletions src/core/p5.Graphics.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import creatingReading from '../color/creating_reading';
import trigonometry from '../math/trigonometry';
import { renderers } from './rendering';
import customShapes from '../shape/custom_shapes';
import files from '../io/files';

class Graphics {
constructor(w, h, renderer, pInst, canvas) {
Expand Down Expand Up @@ -673,6 +674,8 @@ function graphics(p5, fn){
material(p5, p5.Graphics.prototype);
creatingReading(p5, p5.Graphics.prototype);
trigonometry(p5, p5.Graphics.prototype);

files(p5, p5.Graphics.prototype);
}

export default graphics;
Expand Down