same picture on multiple canvas? #131
Replies: 4 comments 3 replies
-
Hi, Dave. It looks like the SC Pictures are unhappy with directly using images urls from that site as their There is a workaround - generate images and add them to the HTML, then import them into SC so they can be used as Picture assets. I can get this code working on my local:
|
Beta Was this translation helpful? Give feedback.
-
This line:
The function takes a CSS selector string. Thus the argument needs to be |
Beta Was this translation helpful? Give feedback.
-
I tried just setting it to a wikipedia image. it displays a blue patch. I don't know where its getting colors from. |
Beta Was this translation helpful? Give feedback.
-
The
(I assume by All the attributes have defaults. This also works:
Happy coding! |
Beta Was this translation helpful? Give feedback.
-
Hello,
i'm not sure what it's showing for a picture when it does but it seems to pick one and stick with it.
https://codepen.io/Dave-Horner/pen/ogNLBRK
Still trying to kick the tires on the canvas image capabilities. I am logging the urls and they are all different colors. the pictures all seem to be the same. I had the host equal to "" and now its document.body. I am going to try the imageDOM stuff but the picture stuff should work with different urls. I'm stumped for now.
https://codepen.io/Dave-Horner/pen/wBvzMBg - img elements show what the images in the canvas should look like.
https://codepen.io/Dave-Horner/pen/yyLaeYv - tried the importDomImage.
Beta Was this translation helpful? Give feedback.
All reactions