Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It would be nice to be able to change palette colors #26

Closed
ultrasuperpingu opened this issue Nov 21, 2022 · 2 comments
Closed

It would be nice to be able to change palette colors #26

ultrasuperpingu opened this issue Nov 21, 2022 · 2 comments

Comments

@ultrasuperpingu
Copy link

ultrasuperpingu commented Nov 21, 2022

I'd like to switch smoothly between 2 color palette. It does not seams to be possible.
Just to try, I made "bn_palettes_manager.h" and "palette_bank.h" public and I use bn::palettes_manager::bg_palettes_bank().set_colors(0,colors);
It seams to work, but it would be nice to be able to do that with vanilla code.

@GValiente
Copy link
Owner

bn::palettes_manager namespace is part of the private API, you should avoid using it.

You can change the colors of any background palette with bn::bg_palette_ptr::set_colors.

@ultrasuperpingu
Copy link
Author

Sorry, I'm stupid, I saw it was possible to change the palette_item but then looked for a way to change the colors of the palette items. I didn't realize, I just had to instanciate a new one :(
I guess you can close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants