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

Unified Diff: client/samples/spirodraw/ColorPicker.dart

Issue 8598008: Fix build, spirodraw (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month 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 | client/samples/spirodraw/Spirodraw.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/spirodraw/ColorPicker.dart
diff --git a/client/samples/spirodraw/ColorPicker.dart b/client/samples/spirodraw/ColorPicker.dart
index d433d22e3b202f7de816d284981ea25e5a73542d..0b083fe889a964a3ed5c277536e054ba506a4e34 100644
--- a/client/samples/spirodraw/ColorPicker.dart
+++ b/client/samples/spirodraw/ColorPicker.dart
@@ -42,7 +42,7 @@ class ColorPicker {
if (( y < 0) || (x >= width)) {
return;
}
- ctx.setFillStyle(getHexString(getColorIndex(x, y)));
+ ctx.fillStyle = getHexString(getColorIndex(x, y));
ctx.fillRect(0, 0, width/2, 30);
}
@@ -74,7 +74,7 @@ class ColorPicker {
for (int g=0; g < 256; g+=51) {
for (int b=0; b < 256; b+=51) {
String color = getHexString(i);
- ctx.setFillStyle(color);
+ ctx.fillStyle = color;
int x = BW * (i % COLS);
int y = BH * (i ~/ COLS) + 40;
ctx.fillRect(x + BP, y + BP, BW - 2 * BP, BH - 2 * BP);
@@ -97,9 +97,9 @@ class ColorPicker {
}
void showSelected() {
- ctx.setFillStyle(_selectedColor);
+ ctx.fillStyle = _selectedColor;
ctx.fillRect(width / 2, 0, width / 2, 30);
- ctx.setFillStyle("white");
+ ctx.fillStyle = "white";
ctx.fillRect(0, 0, width / 2, 30);
}
« no previous file with comments | « no previous file | client/samples/spirodraw/Spirodraw.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698