same picture on multiple canvas? #131
Replies: 6 comments 6 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: |
|
This line: The function takes a CSS selector string. Thus the argument needs to be |
|
I tried just setting it to a wikipedia image. it displays a blue patch. I don't know where its getting colors from. |
|
The (I assume by All the attributes have defaults. This also works: Happy coding! |
If you mean documentation - https://tsdocs.dev/docs/scrawl-canvas/8.14.0 - they automatically generate docs from the SC .d.ts file. I've never checked in detail how accurate their doc generation is, but it seems to be quite comprehensive. |
this is what I ended up using for clearing the images. purge will not disconnect from the prior source or something; i shouldn't be creating multiple img elements with the same name and that's my responsibility to clean up. i assume its best to not delete the images until after the purge but it seems to work in either order. thanks for all the help! |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
All reactions