| Index: sky/examples/raw/painting.sky
|
| diff --git a/sky/examples/raw/painting.sky b/sky/examples/raw/painting.sky
|
| index 70c519febe8098a194c79bd2a7c6ebe2373238dd..9ed0fedd51fb74864a04883899d58bac8440d708 100644
|
| --- a/sky/examples/raw/painting.sky
|
| +++ b/sky/examples/raw/painting.sky
|
| @@ -8,6 +8,7 @@ div {
|
| <div id="canvas" />
|
| <script>
|
| import 'dart:math' as math;
|
| +import 'dart:typed_data';
|
| import 'dart:sky';
|
|
|
| void main() {
|
| @@ -29,12 +30,13 @@ void main() {
|
| paint);
|
|
|
| // Scale x and y by 0.5.
|
| - var scaleMatrix = [
|
| - 0.5, 0.0, 0.0,
|
| - 0.0, 0.5, 0.0,
|
| - 0.0, 0.0, 1.0
|
| - ];
|
| - context.concat(scaleMatrix);
|
| + var scaleMatrix = new Float32List.fromList([
|
| + 0.5, 0.0, 0.0, 0.0,
|
| + 0.0, 0.5, 0.0, 0.0,
|
| + 0.0, 0.0, 0.0, 0.0,
|
| + 0.0, 0.0, 0.0, 1.0,
|
| + ]);
|
| + context.concat(new Matrix4(scaleMatrix));
|
| paint.color = const Color.fromARGB(128, 0, 255, 0);
|
| context.drawCircle(0.0, 0.0, radius, paint);
|
|
|
|
|