Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Arbitrary Colors #1

Open
TorchedSammy opened this issue Dec 16, 2020 · 2 comments
Open

Arbitrary Colors #1

TorchedSammy opened this issue Dec 16, 2020 · 2 comments
Labels
bug Something isn't working

Comments

@TorchedSammy
Copy link
Member

The vpoke command allows a user to set any arbitrary value at any address of VRAM.
This also means, since our VRAM is currently just a backbuffer to the SDL texture used as a screen, a user can vpoke a part of that screen to use any colors they want.

This is bad, since Pinwheel is supposed to be a fantasy computer, limited to a 64 color palette, and while I do want that palette to be customizable, it means if a user is dedicated they can have their program using all colors of the spectrum.

@TorchedSammy TorchedSammy added the bug Something isn't working label Dec 16, 2020
@TorchedSammy
Copy link
Member Author

A way to fix this is use an SDL Palette

@TorchedSammy
Copy link
Member Author

TorchedSammy commented Dec 19, 2020

But it can only be used on a surface, which means I'll have to create a texture from the surface every frame

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant