[Pas2js] Terrain demo

warleyalex warleyalex at yahoo.com.br
Wed May 23 01:06:08 CEST 2018


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_);  



--
Sent from: http://pas2js.38893.n8.nabble.com/


More information about the Pas2js mailing list