Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: test/codegen/sunflower/sunflower.dart

Issue 1007313003: Move sunflower to a new directory, make final tweaks to make it all work. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/codegen/sunflower/sunflower.css ('k') | test/codegen/sunflower/sunflower.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 sunflower; 5 library sunflower;
6 6
7 import 'dart:math'; 7 import 'dart:math';
8 import 'dom.dart'; 8 import 'dom.dart';
9 9
10 const String ORANGE = "orange"; 10 const String ORANGE = "orange";
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 context.clearRect(0, 0, MAX_D, MAX_D); 67 context.clearRect(0, 0, MAX_D, MAX_D);
68 for (var i = 0; i < seeds; i++) { 68 for (var i = 0; i < seeds; i++) {
69 final num theta = i * TAU / PHI; 69 final num theta = i * TAU / PHI;
70 final num r = sqrt(i) * SCALE_FACTOR; 70 final num r = sqrt(i) * SCALE_FACTOR;
71 final num x = centerX + r * cos(theta); 71 final num x = centerX + r * cos(theta);
72 final num y = centerY - r * sin(theta); 72 final num y = centerY - r * sin(theta);
73 new SunflowerSeed(x, y, SEED_RADIUS).draw(); 73 new SunflowerSeed(x, y, SEED_RADIUS).draw();
74 } 74 }
75 notes.textContent = "$seeds seeds"; 75 notes.textContent = "$seeds seeds";
76 } 76 }
OLDNEW
« no previous file with comments | « test/codegen/sunflower/sunflower.css ('k') | test/codegen/sunflower/sunflower.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698