Creating flickering images


Author
Message
sharondan
sharondan
Associate Member (217 reputation)Associate Member (217 reputation)Associate Member (217 reputation)Associate Member (217 reputation)Associate Member (217 reputation)Associate Member (217 reputation)Associate Member (217 reputation)Associate Member (217 reputation)Associate Member (217 reputation)
Group: Forum Members
Posts: 14, Visits: 102
Hi,
I'm trying to make flickering images (4 stimuli that will flicker in a different rate)
One thing I've noticed is that when using regular text (for instance letters) the size of the masking shape has to be bigger than the stimuli (the text size is set by fontstyle with percentage of screen size, background colour is transparent) in a factor of 1.35. For some reason, the width is completely overlapped but there are some variation with hight. (please see enclosed the debugger window). So there is still some portion of the text that is not covered by the mask. 
I had to increase the size of the mask by a factor of 1.31 in order to cover fully the stimuli.
Here is a short example:

<item shapeItems>
/1 = "o" //primary
/2 = "o" //secondary
/3 = "o" //always
</item>

<text flickerSimLow_1>
/ items = item.shapeItems
/ txcolor = black
/ txbgcolor = transparent
/ select = list.aShapePrimaryLow.nextvalue
</text>

<shape blankLow_1>
/ color = parameters.globalScreenColor
/shape = rectangle
/ size = (text.flickerSimLow_1.widthpct*values.multBlankStimRatio_w, text.flickerSimLow_1.heightpct*values.multBlankStimRatio_h)
/ position = (text.flickerSimLow_1.hposition, text.flickerSimLow_1.vposition)
</shape>

============================End example ========================================
Note that even though the percentage is the same, pixel-wise they are not.
Changing the mask shape to be as the same pixels of the text does not help either.


BTW
Originally the flickering was made by these text shapes  "⚫", "▲", ""◼", but due to the problem I've changed it to be 4 stimuli that are the same and the problem still exist. 

Any idea why this happens and would it be the same for pictures?

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
sharondan - 5 Years Ago
Dave - 5 Years Ago
Dave - 5 Years Ago
sharondan - 5 Years Ago
                     Not seeing this under Windows. Here's the code <text shape> /...
Dave - 5 Years Ago
                         Thanks Dave, The shapes are not the same size on the screen (triangle...
sharondan - 5 Years Ago
                             Problem is with the specific characters you've chosen, here and here:...
Dave - 5 Years Ago
                                 Thanks Dave, Since I can not change shapes dynamically, my only...
sharondan - 5 Years Ago
sharondan - 5 Years Ago
Dave - 5 Years Ago
                         Thanks for your reply. There are 4 stimuli, two of them flicker in the...
sharondan - 5 Years Ago
                             I still have no idea what exactly you're trying to do or why "the...
Dave - 5 Years Ago
                             Hi Dave, Thank you for your help! I think I solved it, here is the...
sharondan - 5 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search