Frame around two target stimuli


Frame around two target stimuli

Author
Message
yaz
yaz
Associate Member
Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)

Group: Forum Members
Posts: 6, Visits: 40
Hi,

I am working on an Implicit Association Task (IAT) and would like to know how I could add a coloured frame around the two stimuli images. However, I need two coloured frames for each trial (the two images in one trial should be in a blue frame while the two images in another trial should be in a yellow frame). 

Thank you for your time in advance. 
Dave
Dave
Supreme Being
Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)

Group: Administrators
Posts: 8.9K, Visits: 38K
yaz - Monday, March 12, 2018
Hi,

I am working on an Implicit Association Task (IAT) and would like to know how I could add a coloured frame around the two stimuli images. However, I need two coloured frames for each trial (the two images in one trial should be in a blue frame while the two images in another trial should be in a yellow frame). 

Thank you for your time in advance. 

You need to set up <shape> elements that serve as the "frame". /size them slightly larger than the target stimuli and display them "behind" the targets.

<trial example>
/ stimulusframes = [1=frame, target]
/ validresponse = (57)
</trial>

<shape frame>
/ shape = rectangle
/ color = yellow
/ size = (21%, 21%)
</shape>

<text target>
/ items = ("Some text.")
/ size = (20%, 20%)
/ txbgcolor = white
/ vjustify = center
</text>

yaz
yaz
Associate Member
Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)

Group: Forum Members
Posts: 6, Visits: 40
Dave - Monday, March 12, 2018
yaz - Monday, March 12, 2018
Hi,

I am working on an Implicit Association Task (IAT) and would like to know how I could add a coloured frame around the two stimuli images. However, I need two coloured frames for each trial (the two images in one trial should be in a blue frame while the two images in another trial should be in a yellow frame). 

Thank you for your time in advance. 

You need to set up <shape> elements that serve as the "frame". /size them slightly larger than the target stimuli and display them "behind" the targets.

<trial example>
/ stimulusframes = [1=frame, target]
/ validresponse = (57)
</trial>

<shape frame>
/ shape = rectangle
/ color = yellow
/ size = (21%, 21%)
</shape>

<text target>
/ items = ("Some text.")
/ size = (20%, 20%)
/ txbgcolor = white
/ vjustify = center
</text>

Thank you very much 
yaz
yaz
Associate Member
Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)Associate Member (80 reputation)

Group: Forum Members
Posts: 6, Visits: 40
yaz - Monday, March 12, 2018
Dave - Monday, March 12, 2018
yaz - Monday, March 12, 2018
Hi,

I am working on an Implicit Association Task (IAT) and would like to know how I could add a coloured frame around the two stimuli images. However, I need two coloured frames for each trial (the two images in one trial should be in a blue frame while the two images in another trial should be in a yellow frame). 

Thank you for your time in advance. 

You need to set up <shape> elements that serve as the "frame". /size them slightly larger than the target stimuli and display them "behind" the targets.

<trial example>
/ stimulusframes = [1=frame, target]
/ validresponse = (57)
</trial>

<shape frame>
/ shape = rectangle
/ color = yellow
/ size = (21%, 21%)
</shape>

<text target>
/ items = ("Some text.")
/ size = (20%, 20%)
/ txbgcolor = white
/ vjustify = center
</text>

Thank you very much 
Is there a way in which I can randomly alternate between the presentation of the yellow and blue frame between the trials? 

Thank you for your help. 


Dave
Dave
Supreme Being
Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)Supreme Being (428K reputation)

Group: Administrators
Posts: 8.9K, Visits: 38K
yaz - Monday, March 12, 2018
yaz - Monday, March 12, 2018
Dave - Monday, March 12, 2018
yaz - Monday, March 12, 2018
Hi,

I am working on an Implicit Association Task (IAT) and would like to know how I could add a coloured frame around the two stimuli images. However, I need two coloured frames for each trial (the two images in one trial should be in a blue frame while the two images in another trial should be in a yellow frame). 

Thank you for your time in advance. 

You need to set up <shape> elements that serve as the "frame". /size them slightly larger than the target stimuli and display them "behind" the targets.

<trial example>
/ stimulusframes = [1=frame, target]
/ validresponse = (57)
</trial>

<shape frame>
/ shape = rectangle
/ color = yellow
/ size = (21%, 21%)
</shape>

<text target>
/ items = ("Some text.")
/ size = (20%, 20%)
/ txbgcolor = white
/ vjustify = center
</text>

Thank you very much 
Is there a way in which I can randomly alternate between the presentation of the yellow and blue frame between the trials? 

Thank you for your help. 


Sure, the easiest way would probably be to simply randomly switch the <shape>'s color as needed on a per-trial basis. Suppose you have 10 trials total, and want the shape to be yellow in half of the trials, blue in the other half:

<block myblock>
/ trials = [1-10=example]
</block>

<list framecolor>
/ items = (yellow, blue)
/ poolsize = 10
</list>

<trial example>
/ ontrialbegin = [
    shape.frame.color = list.framecolor.nextvalue;
]
/ stimulusframes = [1=frame, target]
/ validresponse = (57)
</trial>

<shape frame>
/ shape = rectangle
/ color = white
/ size = (21%, 21%)
</shape>

<text target>
/ items = ("Some text.")
/ size = (20%, 20%)
/ txbgcolor = white
/ vjustify = center
</text>

Edited
4 Months Ago by Dave
GO


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....






Millisecond Forums


Search