How can you fill a square drawn with a canvas without using DrawShape?

Here's one approach to try.

Use the tool tip for details.

component_set_get

Search the board for Base64, there has been activity in that area.

A thread with sample projects: