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

Unified Diff: sky/examples/spinning_arabic.dart

Issue 1164393002: Convert everything in the Sky API from degrees to radians. (Closed) Base URL: https://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_square.dart ('k') | sky/tests/resources/display_list.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/spinning_arabic.dart
diff --git a/sky/examples/spinning_arabic.dart b/sky/examples/spinning_arabic.dart
index e42c2f4a4586e666571ee4a6305e9285c256dfbb..25dea1140287e834a84b99d63b367649b51eff1d 100644
--- a/sky/examples/spinning_arabic.dart
+++ b/sky/examples/spinning_arabic.dart
@@ -14,7 +14,7 @@ void beginFrame(double timeStamp) {
double delta = timeStamp - timeBase;
PictureRecorder canvas = new PictureRecorder(view.width, view.height);
canvas.translate(view.width / 2.0, view.height / 2.0);
- canvas.rotateDegrees(delta / 10);
+ 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));
« no previous file with comments | « sky/examples/raw/spinning_square.dart ('k') | sky/tests/resources/display_list.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698