Skip to content

Commit

Permalink
fixes p5 plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dpwoert committed Jan 1, 2024
1 parent 2b0c73d commit c2a1759
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/p5/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import type { MagicCircle } from '@magic-circle/client';

import draw from './draw';

export default function createSketch(magicCircle: MagicCircle, p5?: P5) {
const p5: P5 & { instance: any } = p5 || globalThis.p5;
export default function createSketch(magicCircle: MagicCircle, customP5?: P5) {
const p5 = (customP5 || globalThis.p5) as any;

const global = (preload?: () => void) => {
globalThis.preload = () => {
Expand Down

0 comments on commit c2a1759

Please sign in to comment.