Visual response to click - making text stimuli bold
Hey guys,
I'm currently setting up an experiment where in a first part participants have to rank stimuli in two destination lists by clicking on them (Ranking table in OsWeb — Forum (cogsci.nl)). Yet the graphical interface for the participants is a bit plain and potentially not self-explanatory. Therefore, I wanted to implement some graphical responses for participant so that they keep track of their actions. In the experiment, one stimulus can be ranked in a list by clicking on it and then clicking on the target place.
What I would like to do now is that the stimuli that is clicked is printed in bold letters. Is there a way of "conditionally" printing text bold - without having to define every textline in the sketchpad twice and using show_if conditions?
Thanks,
Leo
Comments
Hi @lt_kn_char ,
Yes, in OpenSesame 4.0 you can use a Python expression to specify the
font_boldparameter in thesketchpad, like so (sometimes()is a function that is built into OpenSesame):draw textline font_bold="{'yes' if sometimes() else 'no'}" text="Sometimes bold" x=0 y=0 z_index=0See also:
Hope this helps!
— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!