[Sugar-devel] [Karma] using svg together w/ k.library.images

Bryan Berry bryan at olenepal.org
Tue Sep 22 01:37:55 EDT 2009


It works fine, 

here is the code I had to add

index.html

<script src="raphael.js"></script>

<div id="holder">
</div>

lesson.js

    var r = Raphael("holder", 100, 120);
    r.image(k.library.images["ball"].src, 0, 0, 100, 120);

It works nicely except for the fact u have to append .src to
images[name] in order to access it

now I will test out dojox.gfx

-- 
Bryan W. Berry
Technology Director
OLE Nepal, http://www.olenepal.org



More information about the Sugar-devel mailing list