pimoroni / pxt-inkybit

pxt-microbit package for the Pimoroni inky:bit - a three-colour e-ink display for your micro:bit.
MIT License
6 stars 7 forks source link

Extension is missing some shadow blocks that would make the experience better #9

Open jfo8000 opened 2 years ago

jfo8000 commented 2 years ago

The drawImage block gives an error when you drag drop it image

What we found after searching was this "big image" block that is (supposed?) to drop in the hole. But it's not great because it only allows you to draw 10x5px which is very hard to see on the inky:bit

image

Its a little complicated but you can prefill those holes with shadow blocks so that people dont have to add in their own image. But also I am wondering how valuable this draw image block is and how it could be made to be useful. We're trying to draw an image across the screen - and while we have tiled the grid is too small to see any patterns on the inkybit.

Gadgetoid commented 2 years ago

Yeah drawing a full-screen image is... tricky. I don't know if there's any precedent for it in PXT/Makecode. The IDE almost needs an image picker, but then conversion to the correct bit-depth and resolution would have to happen somewhere.

I don't know when I'll get the time to mode-switch into PXT/Makecode land... it's been so long that I'm hilariously ill equipped to even discuss changes, much less make some, but this is on my TODO.

jfo8000 commented 2 years ago

@Gadgetoid - The arcade pxt seems to have support for drawing a background image - it might be the one to look at first? image

Gadgetoid commented 2 years ago

I tried to integrate the background image stuff from Arcade, but I think it might be fundamentally incompatible... though to be fair I'm pretty rusty.

Sources: https://github.com/microsoft/pxt-common-packages/blob/3e54bbf9805405dd2da1930c6fea68867f59b9ce/libs/screen/fieldeditors.ts

And:

https://github.com/microsoft/pxt-common-packages/blob/229d5bd24e36f82098461073a8dc45efaca6117e/libs/game/scenes.ts#L72-L82

Ended up with a fairly broken front-end. I think "Image" means something different in arcade versus regular micro:bit.