Skip to content
Browse files

Fixed tests after manually running them all

  • Loading branch information...
1 parent df57218 commit aea5c4691c3ade771dfb1eddaf58da96b2750293 Peter van der Zee committed
View
4 example/library/movies/animation-morph.js
@@ -1,7 +1,9 @@
/**
* animation morph
*/
-var a = new Star(100, 100, 100, 5).attr({
+
+// note: in the current api you cant use new Star as the starting shape...
+var a = Path.star(100, 100, 100, 5).attr({
fillColor: 'red',
opacity: .5
});
View
2 example/library/movies/charts-bars-3D.js
@@ -25,7 +25,7 @@ function bar3d(color, x, y, width, height){
filters: new filter.Blur(2)})
.addTo(stage);
- new Arc(x + width*0.5, y, width/2, 0, Math.PI)
+ new Arc(x + width*0.5, y*0.2, width/2, 0, Math.PI)
.attr({fillColor: 'white', opacity: 0.3, scaleY: 0.2, origin: {x:0, y:y}})
.addTo(stage);
}
View
2 example/library/movies/color.js
@@ -7,7 +7,7 @@ function draw(fill, r, c) {
stage.addChild(rect);
return rect.attr({
fillColor: fill,
- fillGradient: new gradient.LinearGradient(0, ['#000000AA', '#00000000'])
+ fillGradient: gradient.linear(0, ['#000000AA', '#00000000'])
});
}
View
2 example/library/movies/content-creation.js
@@ -7,7 +7,7 @@
new Rect(50, 50, 350, 350)
.addTo(stage)
.attr({strokeColor: 'black', strokeWidth: 4})
- .attr({fillGradient: new gradient.LinearGradient('bottom', ['red', 'yellow'])})
+ .attr({fillGradient: gradient.linear('bottom', ['red', 'yellow'])})
new Bitmap('assets/redpanda.jpg')
View
2 example/library/movies/execution-order.js
@@ -2,6 +2,8 @@
* execution order
*/
+// see console ;)
+
var movie = new Movie();
var movieName = "root";
View
2 example/library/movies/shape-attributes.js
@@ -3,6 +3,6 @@
*
* Path w/ attributes.
*/
-var rectPath = Rect(150, 150, 150, 150).attr({fillColor: 'red', strokeColor: 'green', strokeWidth: 5});
+var rectPath = new Rect(150, 150, 150, 150).attr({fillColor: 'red', strokeColor: 'green', strokeWidth: 5});
stage.addChild(rectPath);
View
2 example/library/movies/shape-frames.js
@@ -5,7 +5,7 @@
*
* Should show a red square, then turn to blue, then to green.
*/
-var rectPath = Rect(150, 150, 150, 150).attr({fillColor: 'red', strokeColor: 'green', strokeWidth: 5});
+var rectPath = new Rect(150, 150, 150, 150).attr({fillColor: 'red', strokeColor: 'green', strokeWidth: 5});
stage.addChild(rectPath);

0 comments on commit aea5c46

Please sign in to comment.
Something went wrong with that request. Please try again.