What it is a easy way to create frame around a simuli?


Author
Message
kulajw
kulajw
Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)
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.



Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 105K
kulajw - Thursday, March 23, 2017
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.



Option 2 is the way to go. I cannot think of an easier one.

kulajw
kulajw
Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)Guru (6K reputation)
Group: Forum Members
Posts: 51, Visits: 256
Dave - Thursday, March 23, 2017
kulajw - Thursday, March 23, 2017
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.



Option 2 is the way to go. I cannot think of an easier one.

Thank you so I follow this way.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search