Index: sky/examples/raw/painting.sky |
diff --git a/sky/examples/raw/painting.sky b/sky/examples/raw/painting.sky |
index 6ff4002c642ec7f6ce218a038d27527762d83f8f..bd960e6efb871a2e94d6e33cf8bb7f38eaa5d7af 100644 |
--- a/sky/examples/raw/painting.sky |
+++ b/sky/examples/raw/painting.sky |
@@ -18,12 +18,14 @@ void main() { |
context.save(); |
- context.clipRect([0.0, 0.0, context.width, radius]); |
+ context.clipRect(new Rect()..setLTRB(0.0, 0.0, context.width, radius)); |
context.translate(context.width / 2.0, context.height / 2.0); |
paint.setARGB(128, 255, 0, 255); |
context.rotateDegrees(45.0); |
- context.drawRect([-radius, -radius, radius, radius], paint); |
+ |
+ context.drawRect(new Rect()..setLTRB(-radius, -radius, radius, radius), |
+ paint); |
// Scale x and y by 0.5. |
var scaleMatrix = [ |