jQuery:
- Finally figured out how to programmatically create canvas elements
- Got width of images that were not actually visible on the page by using vanilla Javascript to create image objects and set source, then use natural width [1]
- Began looking at switching the shaker class over to canvas
Code:
img = new Image(); img.src = imgurl
img.naturalWidth // equals whatever the width of the base image is
No comments:
Post a Comment