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

Unified Diff: dart/site/try/src/samples.dart

Issue 289073009: Rename variable from "ORANGE" to "SEED_COLOR". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/site/try/src/samples.dart
diff --git a/dart/site/try/src/samples.dart b/dart/site/try/src/samples.dart
index f2807c678535df43d75efee8099a0ae6944b81a5..260c66abee1dbcb14a108e30a788c947982e68bf 100644
--- a/dart/site/try/src/samples.dart
+++ b/dart/site/try/src/samples.dart
@@ -84,7 +84,7 @@ library sunflower;
import "dart:html";
import "dart:math";
-const String ORANGE = "orange";
+const String SEED_COLOR = "orange";
const int SEED_RADIUS = 2;
const int SCALE_FACTOR = 4;
const num TAU = PI * 2;
@@ -124,8 +124,8 @@ void draw() {
void drawSeed(num x, num y) {
context..beginPath()
..lineWidth = 2
- ..fillStyle = ORANGE
- ..strokeStyle = ORANGE
+ ..fillStyle = SEED_COLOR
+ ..strokeStyle = SEED_COLOR
..arc(x, y, SEED_RADIUS, 0, TAU, false)
..fill()
..closePath()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698