Change color of keep aspect borders

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By RoniPerson

I am new to godot and started making a simple pixel game.
For this I set the stretch mode to viewport and the aspect to keep.
So i get black borders at the edge of the game. But my game has a black background.
So i want to change the color of the bars sadly i don’t know how.

The Visual Server API for Godot is what you might need. Their is a black _ bars _ set _ images() method that you can use. https://docs.godotengine.org/en/stable/classes/class_visualserver.html#class-visualserver-method-black-bars-set-images

AirWick | 2022-09-17 15:45

:bust_in_silhouette: Reply From: njamster

So i want to change the color of the bars

AFAIK there currently is no option to do that, other than coding it yourself. Take a look at this tutorial if you’re interested in doing that.