Godot Version
4.5
Question
I’ve been meaning to create procedurally generated textures (3x3), but I’m unsure of how to properly save data as an image. I have been given this solution:
My 2 questions are as follows:
- I’d like to use RGBA values to set the color. The fourth argument, “format: Image.Format” has a format called RBGB8. Is RGB8 the best format to use for what I’d like to do?
- I was told to "fill it with ‘Image.set.pixel()’ but how does this target the image that was just created? How do I format the color argument?