Skip to content

How do I get more BPP for my images? #103

@DeveloperTryingToCodeLikeOtherOfThem

Description

I need some help because BPP (Bits for Pixel) right now the palette is either 1 (monochrome) or 4 (up to 16 colors), are there anyway to implement a new image type of thing in the editor (sandbox environment) without needing to access the pxsim (PXT simulator) layer? If so, look under the libs folder, and then click screen, and finally the simulator folder, which looks at all files related to BPP inside this file or likely related to this file. I mainly care of implementing more colors for the simulator, web editor instead of hardware. You may want to look at the image.cpp file (in the screen folder, but not in the sim folder, which is for the simulator and web editor), but for actual hardware, which is not the main thing I aim as mentioned previously.

And the link is right here to find the repository, which is not in this repository, while in pxt-common-packages. https://github.com/microsoft/pxt-common-packages/

Here is an example of the palette limitation right now to show the BPP limitation.

Image

Hint: Right now MakeCode does have a set palette function to customize your colors, but it is up to 16 colors, which is 4 bpp, which is the limitation causing images right now be like this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions