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

Unified Diff: sky/examples/spinning-square.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/examples/raw/touch-demo.sky ('k') | sky/examples/stocks-fn/data/stock_data_0.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/spinning-square.sky
diff --git a/sky/examples/spinning-square.sky b/sky/examples/spinning-square.sky
deleted file mode 100644
index a570732892a906c7cc7c1e4418812f5342a08e35..0000000000000000000000000000000000000000
--- a/sky/examples/spinning-square.sky
+++ /dev/null
@@ -1,31 +0,0 @@
-#!mojo mojo:sky_viewer
-<sky>
-<style>
-square {
- margin: 50px;
- height: 100px;
- width: 100px;
- background-color: green;
-}
-</style>
-<square />
-<script>
-import "dart:sky";
-
-void main() {
- Element square = document.querySelector('square');
- double timeBase = null;
-
- void animate(double time) {
- if (timeBase == null)
- timeBase = time;
- double delta = time - timeBase;
- int rotation = (delta / 10).floor();
- square.style["transform"] = "rotate(${rotation}deg)";
- window.requestAnimationFrame(animate);
- }
-
- window.requestAnimationFrame(animate);
-}
-</script>
-</sky>
« no previous file with comments | « sky/examples/raw/touch-demo.sky ('k') | sky/examples/stocks-fn/data/stock_data_0.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698