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

Unified Diff: client/samples/spirodraw/Spirodraw.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 | « client/samples/spirodraw/ColorPicker.dart ('k') | client/tests/dartc/dartc.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/spirodraw/Spirodraw.dart
diff --git a/client/samples/spirodraw/Spirodraw.dart b/client/samples/spirodraw/Spirodraw.dart
index 4f3f3ebf903b186ce0686bbaa9d30a073522dd70..109c5a774e892eaeb0b6ac679538c010af24df69 100644
--- a/client/samples/spirodraw/Spirodraw.dart
+++ b/client/samples/spirodraw/Spirodraw.dart
@@ -218,7 +218,7 @@ class Spirodraw {
if (animationEnabled) {
front.beginPath();
front.setLineWidth(2);
- front.setStrokeStyle("gray");
+ front.strokeStyle = "gray";
front.arc(xc, yc, R, 0, PI2, true);
front.closePath();
front.stroke();
@@ -245,7 +245,7 @@ class Spirodraw {
front.setLineWidth(1);
front.beginPath();
front.arc(wx, wy, 3, 0, PI2, true);
- front.setFillStyle("black");
+ front.fillStyle = "black";
front.fill();
front.closePath();
front.stroke();
@@ -270,11 +270,11 @@ class Spirodraw {
double ty = wy - d * Math.sin(rot);
if (animationEnabled) {
front.beginPath();
- front.setFillStyle(penColor);
+ front.fillStyle = penColor;
front.arc(tx, ty, penWidth/2+2, 0, PI2, true);
front.fill();
front.moveTo(wx, wy);
- front.setStrokeStyle("black");
+ front.strokeStyle = "black";
front.lineTo(tx, ty);
front.closePath();
front.stroke();
@@ -285,7 +285,7 @@ class Spirodraw {
void drawSegmentTo(double tx, double ty) {
if (lastX > 0) {
back.beginPath();
- back.setStrokeStyle(penColor);
+ back.strokeStyle = penColor;
back.setLineWidth(penWidth);
back.moveTo(lastX, lastY);
back.lineTo(tx, ty);
« no previous file with comments | « client/samples/spirodraw/ColorPicker.dart ('k') | client/tests/dartc/dartc.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698