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

Unified Diff: sky/examples/raw/spinning_square.dart

Issue 1182563002: Remove redundant Paint.setARGB in favor of assigning to Paint.color. (Closed) Base URL: git@github.com:/domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 | « sky/examples/raw/spinning_image.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/raw/spinning_square.dart
diff --git a/sky/examples/raw/spinning_square.dart b/sky/examples/raw/spinning_square.dart
index 97c3c7ab413ace874edd4986b93b1c595672f71d..5613248e4bdc26a5bfe7c90abe8313801e3760cd 100644
--- a/sky/examples/raw/spinning_square.dart
+++ b/sky/examples/raw/spinning_square.dart
@@ -16,7 +16,7 @@ void beginFrame(double timeStamp) {
canvas.translate(view.width / 2.0, view.height / 2.0);
canvas.rotate(math.PI * delta / 1800);
canvas.drawRect(new Rect.fromLTRB(-100.0, -100.0, 100.0, 100.0),
- new Paint()..setARGB(255, 0, 255, 0));
+ new Paint()..color = Color.fromARGB(255, 0, 255, 0));
view.picture = canvas.endRecording();
view.scheduleFrame();
tracing.end('beginFrame');
« no previous file with comments | « sky/examples/raw/spinning_image.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698