Frame around two target stimuli


Author
Message
yaz
yaz
Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 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 (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: 12K, Visits: 98K
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
Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 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
Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 reputation)Partner Member (693 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 (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: 12K, Visits: 98K
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 6 Years Ago by Dave
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search