[solved] Question on how to make a sketchpad object partly transparent
When you have two different sketchpad objects, is there any way to make the background transparent, so that it shows what is in the old object as well as the new object? If not, what could I do if I want to present something new on top of an older display?
Comments
Hi Abeyko,
Not really, at least not without inline script. If you want to present a background sketchpad, followed by a separate background+object sketchpad, you would need to add the background to both sketchpads.
If drawing the background twice is inconvenient, you could consider drawing the object on top of the background with a bit of inline_script.
First you add the following code to the prepare phase of an inline script. This inline script comes after the sketchpad (background_sketchpad) that contains the background. So the background can be drawn normally, without inline_script. The code below draws a simple fixation dot on top of the background, but you can extend it to fit your needs.
Hope this helps!
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!