Create Texture

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

I want to use a ItemList and have a text and a small Texture with one Color.
How can I create a texture in blue for example via code?

:bust_in_silhouette: Reply From: ComanderKai77

https://www.reddit.com/r/godot/comments/72eei6/create_imagetexture_via_code/

I used this code and change the format from FORMAT_DXT5 to FORMAT_RGBA8 and now it is working.