How and where can you draw?
for example in OpenGL we clear the buffer using glClearColor, apply color, and draw something, and perhaps use glBlendFunc, is there a similar alternative in godot, I want to make a sprite editor
I won’t be able to save everything drawn this way, I need some kind of canvas/buffer on which each frame will be saved into a texture, and if necessary it can be cleared.
oh, this is not very convenient, drawing the same lines would have to be developed from scratch using set_pixel, you need something so that you can use the same functions as in _draw, for example draw_circle, if only they would be inserted into the texture or canvas.
I need a surface like the one in the video, in this engine, since it draws with a dot, you can draw with anything, sprites, lines, etc.