Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
W
WorkshopNumberStroop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rebecca
WorkshopNumberStroop
Commits
30e19181
Commit
30e19181
authored
Mar 01, 2023
by
Rebecca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use textstim for numbers - setheight not a function
parent
ae06b103
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
132 deletions
+20
-132
NumberStroop-legacy-browsers.js
NumberStroop-legacy-browsers.js
+8
-24
NumberStroop.js
NumberStroop.js
+8
-24
NumberStroop.psyexp
NumberStroop.psyexp
+4
-84
No files found.
NumberStroop-legacy-browsers.js
View file @
30e19181
...
...
@@ -354,43 +354,27 @@ async function experimentInit() {
// Initialize components for Routine "trial"
trialClock
=
new
util
.
Clock
();
leftNum
=
new
visual
.
Text
Box
({
leftNum
=
new
visual
.
Text
Stim
({
win
:
psychoJS
.
window
,
name
:
'leftNum'
,
text
:
''
,
font
:
'Arial'
,
pos
:
[(
-
0.3
),
0
],
letterHeight
:
1.0
,
size
:
[
0.25
,
0.25
],
units
:
undefined
,
color
:
'white'
,
colorSpace
:
'rgb'
,
fillColor
:
undefined
,
borderColor
:
undefined
,
units
:
undefined
,
pos
:
[(
-
0.3
),
0
],
height
:
1.0
,
wrapWidth
:
undefined
,
ori
:
0.0
,
languageStyle
:
'LTR'
,
bold
:
false
,
italic
:
false
,
opacity
:
undefined
,
padding
:
0.0
,
alignment
:
'center'
,
editable
:
false
,
multiline
:
true
,
anchor
:
'center'
,
color
:
new
util
.
Color
(
'white'
),
opacity
:
undefined
,
depth
:
0.0
});
rightNum
=
new
visual
.
Text
Box
({
rightNum
=
new
visual
.
Text
Stim
({
win
:
psychoJS
.
window
,
name
:
'rightNum'
,
text
:
''
,
font
:
'Arial'
,
pos
:
[
0.3
,
0
],
letterHeight
:
1.0
,
size
:
[
0.25
,
0.25
],
units
:
undefined
,
color
:
'white'
,
colorSpace
:
'rgb'
,
fillColor
:
undefined
,
borderColor
:
undefined
,
units
:
undefined
,
pos
:
[
0.3
,
0
],
height
:
1.0
,
wrapWidth
:
undefined
,
ori
:
0.0
,
languageStyle
:
'LTR'
,
bold
:
false
,
italic
:
false
,
opacity
:
undefined
,
padding
:
0.0
,
alignment
:
'center'
,
editable
:
false
,
multiline
:
true
,
anchor
:
'center'
,
color
:
new
util
.
Color
(
'white'
),
opacity
:
undefined
,
depth
:
-
1.0
});
...
...
NumberStroop.js
View file @
30e19181
...
...
@@ -362,43 +362,27 @@ async function experimentInit() {
// Initialize components for Routine "trial"
trialClock
=
new
util
.
Clock
();
leftNum
=
new
visual
.
Text
Box
({
leftNum
=
new
visual
.
Text
Stim
({
win
:
psychoJS
.
window
,
name
:
'leftNum'
,
text
:
''
,
font
:
'Arial'
,
pos
:
[(
-
0.3
),
0
],
letterHeight
:
1.0
,
size
:
[
0.25
,
0.25
],
units
:
undefined
,
color
:
'white'
,
colorSpace
:
'rgb'
,
fillColor
:
undefined
,
borderColor
:
undefined
,
units
:
undefined
,
pos
:
[(
-
0.3
),
0
],
height
:
1.0
,
wrapWidth
:
undefined
,
ori
:
0.0
,
languageStyle
:
'LTR'
,
bold
:
false
,
italic
:
false
,
opacity
:
undefined
,
padding
:
0.0
,
alignment
:
'center'
,
editable
:
false
,
multiline
:
true
,
anchor
:
'center'
,
color
:
new
util
.
Color
(
'white'
),
opacity
:
undefined
,
depth
:
0.0
});
rightNum
=
new
visual
.
Text
Box
({
rightNum
=
new
visual
.
Text
Stim
({
win
:
psychoJS
.
window
,
name
:
'rightNum'
,
text
:
''
,
font
:
'Arial'
,
pos
:
[
0.3
,
0
],
letterHeight
:
1.0
,
size
:
[
0.25
,
0.25
],
units
:
undefined
,
color
:
'white'
,
colorSpace
:
'rgb'
,
fillColor
:
undefined
,
borderColor
:
undefined
,
units
:
undefined
,
pos
:
[
0.3
,
0
],
height
:
1.0
,
wrapWidth
:
undefined
,
ori
:
0.0
,
languageStyle
:
'LTR'
,
bold
:
false
,
italic
:
false
,
opacity
:
undefined
,
padding
:
0.0
,
alignment
:
'center'
,
editable
:
false
,
multiline
:
true
,
anchor
:
'center'
,
color
:
new
util
.
Color
(
'white'
),
opacity
:
undefined
,
depth
:
-
1.0
});
...
...
NumberStroop.psyexp
View file @
30e19181
...
...
@@ -68,57 +68,17 @@
</Settings>
<Routines>
<Routine
name=
"trial"
>
<TextboxComponent
name=
"leftNum"
>
<Param
val=
"center"
valType=
"str"
updates=
"constant"
name=
"alignment"
/>
<Param
val=
"center"
valType=
"str"
updates=
"constant"
name=
"anchor"
/>
<Param
val=
"True"
valType=
"bool"
updates=
"constant"
name=
"autoLog"
/>
<Param
val=
"False"
valType=
"bool"
updates=
"constant"
name=
"bold"
/>
<Param
val=
"None"
valType=
"color"
updates=
"constant"
name=
"borderColor"
/>
<Param
val=
"2"
valType=
"num"
updates=
"constant"
name=
"borderWidth"
/>
<TextComponent
name=
"leftNum"
>
<Param
val=
"white"
valType=
"color"
updates=
"constant"
name=
"color"
/>
<Param
val=
"rgb"
valType=
"str"
updates=
"constant"
name=
"colorSpace"
/>
<Param
val=
"1"
valType=
"num"
updates=
"constant"
name=
"contrast"
/>
<Param
val=
"False"
valType=
"bool"
updates=
"None"
name=
"disabled"
/>
<Param
val=
""
valType=
"code"
updates=
"None"
name=
"durationEstim"
/>
<Param
val=
"False"
valType=
"bool"
updates=
"constant"
name=
"editable"
/>
<Param
val=
"None"
valType=
"color"
updates=
"constant"
name=
"fillColor"
/>
<Param
val=
"False"
valType=
"bool"
updates=
"constant"
name=
"flipHoriz"
/>
<Param
val=
"False"
valType=
"bool"
updates=
"constant"
name=
"flipVert"
/>
<Param
val=
"Arial"
valType=
"str"
updates=
"constant"
name=
"font"
/>
<Param
val=
"False"
valType=
"bool"
updates=
"constant"
name=
"italic"
/>
<Param
val=
"LTR"
valType=
"str"
updates=
"None"
name=
"languageStyle"
/>
<Param
val=
"thisLeftSize"
valType=
"num"
updates=
"set every repeat"
name=
"letterHeight"
/>
<Param
val=
"1.0"
valType=
"num"
updates=
"constant"
name=
"lineSpacing"
/>
<Param
val=
"leftNum"
valType=
"code"
updates=
"None"
name=
"name"
/>
<Param
val=
""
valType=
"num"
updates=
"constant"
name=
"opacity"
/>
<Param
val=
"0"
valType=
"num"
updates=
"constant"
name=
"ori"
/>
<Param
val=
"visible"
valType=
"str"
updates=
"constant"
name=
"overflow"
/>
<Param
val=
"0"
valType=
"num"
updates=
"constant"
name=
"padding"
/>
<Param
val=
"Type here..."
valType=
"str"
updates=
"constant"
name=
"placeholder"
/>
<Param
val=
"(-0.3, 0)"
valType=
"list"
updates=
"constant"
name=
"pos"
/>
<Param
val=
"True"
valType=
"bool"
updates=
"None"
name=
"saveStartStop"
/>
<Param
val=
"(0.25, 0.25)"
valType=
"list"
updates=
"constant"
name=
"size"
/>
<Param
val=
""
valType=
"list"
updates=
"constant"
name=
"speechPoint"
/>
<Param
val=
""
valType=
"code"
updates=
"None"
name=
"startEstim"
/>
<Param
val=
"time (s)"
valType=
"str"
updates=
"None"
name=
"startType"
/>
<Param
val=
"0.0"
valType=
"code"
updates=
"None"
name=
"startVal"
/>
<Param
val=
"duration (s)"
valType=
"str"
updates=
"None"
name=
"stopType"
/>
<Param
val=
""
valType=
"code"
updates=
"constant"
name=
"stopVal"
/>
<Param
val=
"True"
valType=
"bool"
updates=
"None"
name=
"syncScreenRefresh"
/>
<Param
val=
"$thisLeftNum"
valType=
"str"
updates=
"set every repeat"
name=
"text"
/>
<Param
val=
"from exp settings"
valType=
"str"
updates=
"None"
name=
"units"
/>
</TextboxComponent>
<TextComponent
name=
"leftNum2"
>
<Param
val=
"white"
valType=
"color"
updates=
"constant"
name=
"color"
/>
<Param
val=
"rgb"
valType=
"str"
updates=
"constant"
name=
"colorSpace"
/>
<Param
val=
"1"
valType=
"num"
updates=
"constant"
name=
"contrast"
/>
<Param
val=
"True"
valType=
"bool"
updates=
"None"
name=
"disabled"
/>
<Param
val=
""
valType=
"code"
updates=
"None"
name=
"durationEstim"
/>
<Param
val=
"None"
valType=
"str"
updates=
"constant"
name=
"flip"
/>
<Param
val=
"Arial"
valType=
"str"
updates=
"constant"
name=
"font"
/>
<Param
val=
"LTR"
valType=
"str"
updates=
"None"
name=
"languageStyle"
/>
<Param
val=
"thisLeftSize"
valType=
"num"
updates=
"set every repeat"
name=
"letterHeight"
/>
<Param
val=
"leftNum
2
"
valType=
"code"
updates=
"None"
name=
"name"
/>
<Param
val=
"leftNum"
valType=
"code"
updates=
"None"
name=
"name"
/>
<Param
val=
""
valType=
"num"
updates=
"constant"
name=
"opacity"
/>
<Param
val=
"0"
valType=
"num"
updates=
"constant"
name=
"ori"
/>
<Param
val=
"(-0.3, 0)"
valType=
"list"
updates=
"constant"
name=
"pos"
/>
...
...
@@ -133,57 +93,17 @@
<Param
val=
"from exp settings"
valType=
"str"
updates=
"None"
name=
"units"
/>
<Param
val=
""
valType=
"num"
updates=
"constant"
name=
"wrapWidth"
/>
</TextComponent>
<TextboxComponent
name=
"rightNum"
>
<Param
val=
"center"
valType=
"str"
updates=
"constant"
name=
"alignment"
/>
<Param
val=
"center"
valType=
"str"
updates=
"constant"
name=
"anchor"
/>
<Param
val=
"True"
valType=
"bool"
updates=
"constant"
name=
"autoLog"
/>
<Param
val=
"False"
valType=
"bool"
updates=
"constant"
name=
"bold"
/>
<Param
val=
"None"
valType=
"color"
updates=
"constant"
name=
"borderColor"
/>
<Param
val=
"2"
valType=
"num"
updates=
"constant"
name=
"borderWidth"
/>
<TextComponent
name=
"rightNum"
>
<Param
val=
"white"
valType=
"color"
updates=
"constant"
name=
"color"
/>
<Param
val=
"rgb"
valType=
"str"
updates=
"constant"
name=
"colorSpace"
/>
<Param
val=
"1"
valType=
"num"
updates=
"constant"
name=
"contrast"
/>
<Param
val=
"False"
valType=
"bool"
updates=
"None"
name=
"disabled"
/>
<Param
val=
""
valType=
"code"
updates=
"None"
name=
"durationEstim"
/>
<Param
val=
"False"
valType=
"bool"
updates=
"constant"
name=
"editable"
/>
<Param
val=
"None"
valType=
"color"
updates=
"constant"
name=
"fillColor"
/>
<Param
val=
"False"
valType=
"bool"
updates=
"constant"
name=
"flipHoriz"
/>
<Param
val=
"False"
valType=
"bool"
updates=
"constant"
name=
"flipVert"
/>
<Param
val=
"Arial"
valType=
"str"
updates=
"constant"
name=
"font"
/>
<Param
val=
"False"
valType=
"bool"
updates=
"constant"
name=
"italic"
/>
<Param
val=
"LTR"
valType=
"str"
updates=
"None"
name=
"languageStyle"
/>
<Param
val=
"thisRightSize"
valType=
"num"
updates=
"set every repeat"
name=
"letterHeight"
/>
<Param
val=
"1.0"
valType=
"num"
updates=
"constant"
name=
"lineSpacing"
/>
<Param
val=
"rightNum"
valType=
"code"
updates=
"None"
name=
"name"
/>
<Param
val=
""
valType=
"num"
updates=
"constant"
name=
"opacity"
/>
<Param
val=
"0"
valType=
"num"
updates=
"constant"
name=
"ori"
/>
<Param
val=
"visible"
valType=
"str"
updates=
"constant"
name=
"overflow"
/>
<Param
val=
"0"
valType=
"num"
updates=
"constant"
name=
"padding"
/>
<Param
val=
"Type here..."
valType=
"str"
updates=
"constant"
name=
"placeholder"
/>
<Param
val=
"(0.3, 0)"
valType=
"list"
updates=
"constant"
name=
"pos"
/>
<Param
val=
"True"
valType=
"bool"
updates=
"None"
name=
"saveStartStop"
/>
<Param
val=
"(0.25, 0.25)"
valType=
"list"
updates=
"constant"
name=
"size"
/>
<Param
val=
""
valType=
"list"
updates=
"constant"
name=
"speechPoint"
/>
<Param
val=
""
valType=
"code"
updates=
"None"
name=
"startEstim"
/>
<Param
val=
"time (s)"
valType=
"str"
updates=
"None"
name=
"startType"
/>
<Param
val=
"0.0"
valType=
"code"
updates=
"None"
name=
"startVal"
/>
<Param
val=
"duration (s)"
valType=
"str"
updates=
"None"
name=
"stopType"
/>
<Param
val=
""
valType=
"code"
updates=
"constant"
name=
"stopVal"
/>
<Param
val=
"True"
valType=
"bool"
updates=
"None"
name=
"syncScreenRefresh"
/>
<Param
val=
"$thisRightNum"
valType=
"str"
updates=
"set every repeat"
name=
"text"
/>
<Param
val=
"from exp settings"
valType=
"str"
updates=
"None"
name=
"units"
/>
</TextboxComponent>
<TextComponent
name=
"rightNum2"
>
<Param
val=
"white"
valType=
"color"
updates=
"constant"
name=
"color"
/>
<Param
val=
"rgb"
valType=
"str"
updates=
"constant"
name=
"colorSpace"
/>
<Param
val=
"1"
valType=
"num"
updates=
"constant"
name=
"contrast"
/>
<Param
val=
"True"
valType=
"bool"
updates=
"None"
name=
"disabled"
/>
<Param
val=
""
valType=
"code"
updates=
"None"
name=
"durationEstim"
/>
<Param
val=
"None"
valType=
"str"
updates=
"constant"
name=
"flip"
/>
<Param
val=
"Arial"
valType=
"str"
updates=
"constant"
name=
"font"
/>
<Param
val=
"LTR"
valType=
"str"
updates=
"None"
name=
"languageStyle"
/>
<Param
val=
"thisRightSize"
valType=
"num"
updates=
"set every repeat"
name=
"letterHeight"
/>
<Param
val=
"rightNum
2
"
valType=
"code"
updates=
"None"
name=
"name"
/>
<Param
val=
"rightNum"
valType=
"code"
updates=
"None"
name=
"name"
/>
<Param
val=
""
valType=
"num"
updates=
"constant"
name=
"opacity"
/>
<Param
val=
"0"
valType=
"num"
updates=
"constant"
name=
"ori"
/>
<Param
val=
"(0.3, 0)"
valType=
"list"
updates=
"constant"
name=
"pos"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment