fixed bug with setSize method in Image object, and tweaked shape caching performance test to demonstrate a 4x drawing performance boost

This commit is contained in:
Eric Rowell
2012-07-22 17:05:45 -07:00
parent 781a2ebe60
commit da7429fb7b
4 changed files with 19 additions and 18 deletions

View File

@@ -91,7 +91,13 @@ Test.prototype.tests = {
strokeWidth: 5,
numPoints: 5,
x: Math.random() * stage.getWidth(),
y: Math.random() * stage.getHeight()
y: Math.random() * stage.getHeight(),
shadow: {
offset: 5,
color: 'black',
blur: 5,
alpha: 0.5
}
});
layer.add(star);
@@ -117,13 +123,18 @@ Test.prototype.tests = {
strokeWidth: 5,
numPoints: 5,
x: 70,
y: 70
y: 70,
shadow: {
offset: 5,
color: 'black',
blur: 5,
alpha: 0.5
}
});
layer.add(star);
stage.add(layer);
console.log('call toImage')
star.toImage({
callback: function(img) {
startTimer();