[Pas2js] Terrain demo

Ryan Joseph ryan at thealchemistguild.com
Wed May 23 04:08:51 CEST 2018


Thanks that fixed it.

There’s the demo working:

http://htmlpreview.github.io/?https://raw.githubusercontent.com/genericptr/Pas2JS-WebGL/master/html/Pas2JS_WebGL_Terrain.html

> On May 23, 2018, at 6:06 AM, warleyalex via Pas2js <pas2js at lists.freepascal.org> wrote:
> 
> you have to set the crossorigin attribute to allow CORS, a local server is
> required to work.
> 
> var
>  img_ : TJSElement;
> 
> begin
>  img_ := document.createElement('IMG');
>  img_.setAttribute('height', '665');
>  img_.setAttribute('width', '648');
>  img_.setAttribute('crossOrigin', 'anonymous');
>  img_.setAttribute('src', 'assets/nintendo1.svg');
>  console.log(img_);  

Regards,
	Ryan Joseph



More information about the Pas2js mailing list