diff --git a/img/free_block.png b/img/free_block.png deleted file mode 100644 index 26d7262..0000000 Binary files a/img/free_block.png and /dev/null differ diff --git a/img/used_block.png b/img/used_block.png deleted file mode 100644 index 1ab8bd0..0000000 Binary files a/img/used_block.png and /dev/null differ diff --git a/index.html b/index.html index 6ced17d..13e73b5 100644 --- a/index.html +++ b/index.html @@ -87,7 +87,6 @@ Limit is 7 blocks - diff --git a/script/app.js b/script/app.js index aeb7cde..f959792 100644 --- a/script/app.js +++ b/script/app.js @@ -22,25 +22,6 @@ Vue.component('bitmap-preview', { template: '' }); -Vue.component('blocks', { - props: ['used'], - computed: { - blocksUsedKeys: function () { - return [...Array(this.used).keys()].map((v) => `u${v}`); - }, - blocksFreeKeys: function () { - return [...Array(7 - this.used).keys()].map((v) => `f${v}`); - } - }, - template: ` - - - - - - ` -}) - Vue.component('ticker-settings', { props: ['processor', 'fontsLoaded', 'fontIndex'], data: function() { diff --git a/script/gbnp.js b/script/gbnp.js index ac382a2..11a72ed 100644 --- a/script/gbnp.js +++ b/script/gbnp.js @@ -516,8 +516,9 @@ class TickerText { ctx.font = font; ctx.fillStyle = 'black'; ctx.fillRect(0, 0, canvas.width, canvas.height); - ctx.fillStyle = '#888'; - ctx.fillText(text,3,14); + + // ctx.fillStyle = '#888'; // drop shadow + // ctx.fillText(text,3,14); ctx.fillStyle = 'white'; ctx.fillText(text,1,12); @@ -527,11 +528,12 @@ class TickerText { let byte = 0; for (let j = 0; j < 4; j++) { let red = imageData[i+j*4]; - if (red < 100) { + if (red < 210) { byte = byte | 0b11 << (6 - j*2); - } else if (red < 210) { - byte = byte | 0b01 << (6 - j*2); - } + } + // else if (red < 210) { + // byte = byte | 0b01 << (6 - j*2); + // } } buffer.push(byte) }