From 22c2fb3c2f7b105495077da5a37c995861ba40e0 Mon Sep 17 00:00:00 2001 From: Steven Hugg Date: Mon, 18 Mar 2019 14:39:02 -0400 Subject: [PATCH] started on asset editor --- css/ui.css | 23 ++++++ demo.html | 8 ++- doc/notes.txt | 2 + index.html | 1 + src/pixed/pixeleditor.ts | 152 ++++++++++++++++++++++++++++++++++++++- src/ui.ts | 10 ++- src/util.ts | 3 + src/views.ts | 136 ++++++++++++++++++++++++++++++++++- src/worker/workermain.ts | 4 +- 9 files changed, 327 insertions(+), 12 deletions(-) diff --git a/css/ui.css b/css/ui.css index e4231107..f09e2ad8 100644 --- a/css/ui.css +++ b/css/ui.css @@ -449,3 +449,26 @@ span.profiler-local { span.profiler-cident { color: #99ffff; } +div.asset_file { + border: 2px solid black; + border-radius:8px; + color: #ddd; + background-color:#666; + margin:0.5em; + padding:1em; +} +div.asset_file_header { + font-weight: bold; + color: white; +} +div.asset_grid { + line-height:0; + margin: 1em; +} +div.asset_grid span { + white-space: nowrap; +} +div.asset_grid canvas { + padding: 0px; + border: 1px solid black; +} diff --git a/demo.html b/demo.html index 3546787a..a4a3a3c2 100644 --- a/demo.html +++ b/demo.html @@ -150,6 +150,10 @@ We'll delve into these circuits as they morph from Pong into programmable person At the end of this adventure, you should be well-equipped to begin exploring the world of FPGAs, and maybe even design your own game console. You'll use the 8bitworkshop.com IDE to write Verilog programs that represent digital circuits, and see your code run instantly in the browser.

+
+
+
+
@@ -236,14 +240,16 @@ At the end of this adventure, you should be well-equipped to begin exploring the You can even write C or 6502 assembler code for Woz's creation, the Apple ][+. Thrill to the unusual frame buffer layout and one-bit speaker output! + You can even export to cassette tape!
+ - + Become a Patron!