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

Unified Diff: experimental/SkV8Example/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/SkV8Example/js/speed.js ('k') | experimental/SkV8Example/sample.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/SkV8Example/path.js
diff --git a/experimental/SkV8Example/path.js b/experimental/SkV8Example/path.js
deleted file mode 100644
index 81eb0d772bf3cd1237a6d697617464cd4130914e..0000000000000000000000000000000000000000
--- a/experimental/SkV8Example/path.js
+++ /dev/null
@@ -1,33 +0,0 @@
-/**
- * @fileoverview Sample onDraw script for use with SkV8Example.
- */
-var onDraw = function(){
- var p = new Path2D();
- p.moveTo(0, 0);
- p.bezierCurveTo(0, 100, 100, 0, 200, 200);
- p.close();
- p.moveTo(0, 300);
- p.arc(0, 300, 40, Math.PI/2, 3/2*Math.PI);
- function f(context) {
- context.translate(10, 10);
- for (var i=0; i<256; i++) {
- context.strokeStyle = '#0000' + toHex(i);
- context.stroke(p);
- context.translate(1, 0);
- }
- context.fillStyle = '#ff0000';
- print(context.width, context.height);
- context.resetTransform();
- context.fillRect(context.width/2, context.height/2, 20, 20);
- };
- return f;
-}();
-
-
-function toHex(n) {
- var s = n.toString(16);
- if (s.length == 1) {
- s = "0" + s;
- }
- return s;
-}
« no previous file with comments | « experimental/SkV8Example/js/speed.js ('k') | experimental/SkV8Example/sample.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698