Connecting external paper js file

18 views
Skip to first unread message

Mamuka Trandyswilly

unread,
Apr 24, 2021, 11:22:45 AMApr 24
to Paper.js
Good day!

Is it possible to transfer the code written using the paper.js library to an external js file and how can such a file then be included in the html file?
How to properly arrange an external file and its connection?

Thank you so much!

asensi...@gmail.com

unread,
May 25, 2021, 1:42:23 PMMay 25
to Paper.js
Hello,

There is nothing special about it, you just have to do like with any other javascript file.
You have to make sure that your code is run after both the paperjs library and the canvas element that you are targeting has been loaded.
Reply all
Reply to author
Forward
0 new messages