OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 // | 4 // |
5 | 5 |
6 import 'package:lk/framebuffer.dart'; | 6 import 'package:lk/framebuffer.dart'; |
7 | 7 |
8 class MovingPoint { | 8 class MovingPoint { |
9 int x, y; | 9 int x, y; |
10 int mx, my; | 10 int mx, my; |
11 | 11 |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 var surface = new FrameBuffer(); | 59 var surface = new FrameBuffer(); |
60 | 60 |
61 while (true) { | 61 while (true) { |
62 for (int j = 0; j < 1000; j++) { | 62 for (int j = 0; j < 1000; j++) { |
63 lines.forEach((line) => line.update(surface)); | 63 lines.forEach((line) => line.update(surface)); |
64 surface.flush(); | 64 surface.flush(); |
65 } | 65 } |
66 surface.clear(); | 66 surface.clear(); |
67 } | 67 } |
68 } | 68 } |
OLD | NEW |