Group: Forum Members
Posts: 51,
Visits: 256
|
Hi ;)
I would like to create a frame around a set of letters. I figure out two ways of doing this but both are error prone. Do you have any Ideas how to create frame around a set of stimuli in a easy and robust way? Espetialy, it is posible to set transparent background and change border width in a <shape>, /shape = rectangle?
Bellow my ways of creating frame, mayby you will figure out how to upgrade it
1) Creating letter in frame by merging shape and text of difrent sizes - manipulating text txbgcolour to create border
<shape FRAME> / shape = rectangle / size = (100,200) / position = (50,50) </shape>
<text A> / items = ("A") / txbgcolor = white / vjustify = center / position = (50,50) / size = (90,190) </text>
<trial A_in_frame > / stimulustimes = [0=FRAME,A] / timeout = 1000 </trial>
#This does not work properly if I place more than one letter in a random location within a frame ;(
2) Creating letter in frame by mergin four shapes to create frame around letter
<shape Side_bottom> / shape = rectangle / size = (120,10) / position = (50,59.1) </shape>
<shape Side_left> / shape = rectangle / size = (10,205) / position = (47,50) </shape>
<shape Side_right> / shape = rectangle / size = (10,205) / position = (53,50) </shape>
<shape Side_up> / shape = rectangle / size = (120,10) / position = (50,41) </shape>
<text B> / items = ("B") / vjustify = center / position = (50,50) </text>
<trial frame> / stimulustimes = [0=Side_bottom,Side_left,Side_right,Side_up,B] / timeout = 10000 </trial>
this seems to work fine, but is quite complicaed to set up proper size of frame ;(
Thanks for any advice.
|