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

Side by Side Diff: sky/examples/painting/circle.sky

Issue 1005393006: Clean up examples directory (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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/input/input_app.dart ('k') | sky/examples/raw/circle.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <sky>
2 <style>
3 div {
4 height: 200px;
5 background-color: lightblue;
6 }
7 </style>
8 <div id="canvas" />
9 <script>
10 import 'dart:math' as math;
11 import 'dart:sky';
12
13 void main() {
14 var element = document.getElementById('canvas');
15 element.requestPaint((PaintingContext context) {
16 Paint paint = new Paint();
17 paint.setARGB(128, 0, 255, 0);
18 double radius = math.min(context.width, context.height) / 2.0;
19 context.drawCircle(context.width / 2.0, context.height / 2.0, radius, paint) ;
20 context.commit();
21 });
22 }
23 </script>
24 </sky>
OLDNEW
« no previous file with comments | « sky/examples/input/input_app.dart ('k') | sky/examples/raw/circle.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698