From 852bc243501e3341648a0ef18abc75f1bb5c8347 Mon Sep 17 00:00:00 2001 From: BHARATH0153 Date: Tue, 9 Jun 2026 20:06:55 +0530 Subject: [PATCH] fix: attach save() to p5.Graphics.prototype --- src/core/p5.Graphics.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/p5.Graphics.js b/src/core/p5.Graphics.js index 736cd59ad0..dcb273d6b1 100644 --- a/src/core/p5.Graphics.js +++ b/src/core/p5.Graphics.js @@ -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) { @@ -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;