From 112cbeda1e6c01d664d11356d3b2a41504a5fbbe Mon Sep 17 00:00:00 2001 From: Steven Hugg Date: Thu, 4 May 2017 11:54:56 -0400 Subject: [PATCH] working on pixel editor --- css/ui.css | 20 ++- index.html | 54 +++---- pixels.html | 71 ++++++++ presets/williams-z80/game1.c | 2 - src/emu.js | 2 - src/pixed/pixeleditor.js | 304 +++++++++++++++++++++++++++++++++++ src/ui.js | 60 ++++++- 7 files changed, 470 insertions(+), 43 deletions(-) create mode 100644 pixels.html create mode 100644 src/pixed/pixeleditor.js diff --git a/css/ui.css b/css/ui.css index f3ca98bf..d64b7cd3 100644 --- a/css/ui.css +++ b/css/ui.css @@ -48,13 +48,13 @@ left:0; right:0; background-color: #666; - overflow: hidden;; + overflow: hidden; } -div.workspace { - background-color:#999; +#workspace { + background-color:#333; + width:50%; } div.editor { - width:50%; line-height:1.25; font-size:12pt; } @@ -182,6 +182,8 @@ a.dropdown-toggle { border-radius:6px 0 6px 6px; } .emubevel { + width:100%; + height:100%; padding:4%; background:#333; } @@ -204,3 +206,13 @@ canvas.pixelated { image-rendering: pixelated; /* Awesome future-browsers */ -ms-interpolation-mode: nearest-neighbor; /* IE */ } +.palbtn { + width:2em; + height:2em; + border-style:none; +} +.selected { + border-width:2px; + border-color:white; + border-style:dotted; +} diff --git a/index.html b/index.html index e2253e89..7e38bf5d 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,21 @@ body { overflow: hidden !important; font-size: 11px; } +.pixeditback { + position:absolute; + z-index:100; + width:100%; + height:100%; + padding:50px; + border-width:4px; + border-color:#333; + border-style:solid; + background-color:rgba(64, 64, 64, 0.5); +} +#pixeditframe { + width:100%; + height:100%; +} @@ -61,6 +76,9 @@ body { + + +
@@ -99,39 +117,9 @@ body { Making 8-bit Arcade Games in C
- -