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

Side by Side Diff: sky/examples/raw/custom_paint_without_element.sky

Issue 1184523002: Fix bustage from my previous CL: "Color.fromARGB" becomes "new Color.fromARGB". (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 unified diff | Download patch
« no previous file with comments | « sky/examples/raw/circle.sky ('k') | sky/examples/raw/draw_picture_into_canvas.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <script> 1 <script>
2 import "dart:math"; 2 import "dart:math";
3 import 'dart:sky'; 3 import 'dart:sky';
4 4
5 void main() { 5 void main() {
6 double width = window.innerWidth.toDouble(); 6 double width = window.innerWidth.toDouble();
7 double height = window.innerHeight.toDouble(); 7 double height = window.innerHeight.toDouble();
8 8
9 PictureRecorder recorder = new PictureRecorder(width, height); 9 PictureRecorder recorder = new PictureRecorder(width, height);
10 double radius = min(width, height) * 0.45; 10 double radius = min(width, height) * 0.45;
11 11
12 Paint paint = new Paint()..color = Color.fromARGB(255, 0, 255, 0); 12 Paint paint = new Paint()..color = const Color.fromARGB(255, 0, 255, 0);
13 13
14 recorder.drawCircle(width / 2, height / 2, radius, paint); 14 recorder.drawCircle(width / 2, height / 2, radius, paint);
15 15
16 document.rootPicture = recorder.endRecording(); 16 document.rootPicture = recorder.endRecording();
17 } 17 }
18 </script> 18 </script>
OLDNEW
« no previous file with comments | « sky/examples/raw/circle.sky ('k') | sky/examples/raw/draw_picture_into_canvas.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698