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

Side by Side Diff: experimental/SkV8Example/js/path.js

Issue 677133002: Move .js files to their own directory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 2 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 | « experimental/SkV8Example/js/gears.js ('k') | experimental/SkV8Example/js/sample.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** 1 /**
2 * @fileoverview Sample onDraw script for use with SkV8Example. 2 * @fileoverview Sample onDraw script for use with SkV8Example.
3 */ 3 */
4 var onDraw = function(){ 4 var onDraw = function(){
5 var p = new Path2D(); 5 var p = new Path2D();
6 p.moveTo(0, 0); 6 p.moveTo(0, 0);
7 p.bezierCurveTo(0, 100, 100, 0, 200, 200); 7 p.bezierCurveTo(0, 100, 100, 0, 200, 200);
8 p.close(); 8 p.close();
9 p.moveTo(0, 300); 9 p.moveTo(0, 300);
10 p.arc(0, 300, 40, Math.PI/2, 3/2*Math.PI); 10 p.arc(0, 300, 40, Math.PI/2, 3/2*Math.PI);
(...skipping 13 matching lines...) Expand all
24 }(); 24 }();
25 25
26 26
27 function toHex(n) { 27 function toHex(n) {
28 var s = n.toString(16); 28 var s = n.toString(16);
29 if (s.length == 1) { 29 if (s.length == 1) {
30 s = "0" + s; 30 s = "0" + s;
31 } 31 }
32 return s; 32 return s;
33 } 33 }
OLDNEW
« no previous file with comments | « experimental/SkV8Example/js/gears.js ('k') | experimental/SkV8Example/js/sample.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698