We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi..
I have a main canvas where i have text..
I want to add a drop shadow to this text... So i created a createGraphics image.. where i paint the same text
In this new createGraphics image i want to add a blur.. and then copy this blured image to my main canvas....
But when i try to apply the blur.. i get this error:
** Cannot read property 'getContext' of undefined**
In this sketch in line 75.. if you uncomment thte line where i add the blur.. it get the error.. : https://codepen.io/giorgiomartini/pen/LzQeGQ?editors=0010
Any idea what is the problem?
Answers
Use
https://CDN.JSDelivr.net/npm/p5
in place ofhttps://CDNjs.CloudFlare.com/ajax/libs/p5.js/0.5.2/p5.min.js
L-)@GoToLoop I believe the change you suggest allows to use the most update version of the p5.js library?
Kf
Indeed. Click at those 2 links and read their version & date at the very top. B-)