Link JavaScript to HTML

I want to use the jscolors library in playcanvas. I saw you suggested it in an question for color picker. I applied the example in this link exactly, but it doesn’t work. Any ideas @Leonidas ? Where am i doing wrong?

Example: The Close button - jscolor: JavaScript Color picker
Project: PlayCanvas | HTML5 Game Engine

Hi @mehmedcan,

I think you are missing some code to initialize jscolor in your project.

Check this topic, it contains both instructions on how to do that and an exact PlayCanvas example: How to integrate jscolor with playcanvas? - #2 by Leonidas

1 Like

Thanks @Leonidas, it helped :pray: