From: dansalmo <salmo...@googlemail.com>
Date: Sun, 10 Jun 2012 14:35:46 -0700 (PDT)
Local: Sun, Jun 10 2012 5:35 pm
Subject: Re: Add Tillable Textures on object
I am very new to javascript and paperscript so someone else may
provide a much better solution. Based on the docs, if you want to repeat a lot of something but not access each one individually later, the use of symbols is recommended since they perform much better. I also found the the size of the image does not get inherited by tile unless the src is set before creating the raster. var img = new Image();
// Create a symbol from the raster and remove tile from the view:
img.onload = function() {
};
you can see it working here with a placeholder image:
http://jsfiddle.net/dansalmo/EjSFu/ On Jun 9, 9:19 pm, Emmanuel Bourmault <shadowbo...@gmail.com> wrote:
> What I need is like on this example the "Scaling" part.https://developer.mozilla.org/en/Canvas_tutorial/Using_images
> I will need to use the function drawImage but when I do this it fails. > Here is the code that I tested:
> img.onload = function(){
> On Saturday, June 9, 2012 11:03:35 PM UTC+8, Emmanuel Bourmault wrote:
> > Hello,
> > Thank you for your answers. You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||