How to only draw inside the lines of a specific area

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

In Godot I’m trying to achieve the same effect shown in this coloring book app HERE each part of the image is a separate layer and when coloring, only that section is colored in. Any ideas are welcome. I have been trying for hours to figure out how to do it.

:bust_in_silhouette: Reply From: Inces

I believe shaders are good way for this. Make image in Krita in layers and save each layer as separate image. Each image will be texture of Sprite, and each of those Sprites will have the same shader. Shader will colour only active element in chosen patter based on passed global_mouse position.

PS. What an assholish application in this link. They would even border colouring book palette for children to 6 colours… what is this, Pay2Paint ?

Completely missed seeing your response until now! Thank you for your answer. Wow and I also just noticed you answered back the same day.

Yeah, unfortunately a pretty restrictive little app for kids :frowning:

ChildLearning.Club | 2023-04-05 21:58