Rectangle function and text
Hello, I am running an experiment where i need to have the background colour change and text change.
On sketchpad, I put the rect element around text but i need that rectangle to be filled in. The issue I am having is that when I do fill that in, I am not able to see the word. How can I fix this?
Comments
Hi Maria,
If you view the script of the
sketchpad(by clicking on the middle button of the three buttons at the top-right of thesketchpadand selecting 'View script'), you will see that each element has a z-index. The z-index determines which element is drawn first, such that lower z-indices are on top. So changing the z-index of the text to a lower value (e.g. -1) should cause the text to become visible again.Like so:
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!