| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library painter; | 5 library painter; |
| 6 | 6 |
| 7 import 'dom.dart'; | 7 import 'dart:html'; |
| 8 import 'dart:math'; | 8 import 'dart:math'; |
| 9 | 9 |
| 10 import 'circle.dart'; | 10 import 'circle.dart'; |
| 11 | 11 |
| 12 const ORANGE = "orange"; | 12 const ORANGE = "orange"; |
| 13 const RED = "red"; | 13 const RED = "red"; |
| 14 const BLUE = "blue"; | 14 const BLUE = "blue"; |
| 15 const TAU = PI * 2; | 15 const TAU = PI * 2; |
| 16 | 16 |
| 17 Element querySelector(String selector) => document.querySelector(selector); | 17 Element querySelector(String selector) => document.querySelector(selector); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 28 context | 28 context |
| 29 ..beginPath() | 29 ..beginPath() |
| 30 ..lineWidth = 2 | 30 ..lineWidth = 2 |
| 31 ..fillStyle = color | 31 ..fillStyle = color |
| 32 ..strokeStyle = color | 32 ..strokeStyle = color |
| 33 ..arc(x, y, radius, 0, TAU, false) | 33 ..arc(x, y, radius, 0, TAU, false) |
| 34 ..fill() | 34 ..fill() |
| 35 ..closePath() | 35 ..closePath() |
| 36 ..stroke(); | 36 ..stroke(); |
| 37 } | 37 } |
| 38 } | 38 } |
| OLD | NEW |