@@ -280,16 +281,28 @@ async function experimentInit() {
// Initialize components for Routine "rectangle"
rectangleClock=newutil.Clock();
text_angle=newvisual.TextStim({
win:psychoJS.window,
name:'text_angle',
text:'',
font:'Arial',
units:'norm',
pos:[0,0.8],height:0.075,wrapWidth:1.5,ori:0,
languageStyle:'LTR',
color:newutil.Color('white'),opacity:1,
depth:-1.0
});
text=newvisual.TextStim({
win:psychoJS.window,
name:'text',
text:"This shape should be a 5 cm square.\nComponent size (5*x_scale, 5*y_scale) set every repeat.\nThe circle should have a visual angle of 10 degrees using\nsize (10 * visual_angle * x_scale, 10 * visual_angle * y_scale)\nPress space to continue'",
text:"This shape should be a 5 cm square.\nComponent size (5*x_scale, 5*y_scale) set every repeat.\n\nPress space to continue'",
font:'Arial',
units:'norm',
pos:[0,(-0.8)],height:0.075,wrapWidth:1.5,ori:0,
languageStyle:'LTR',
color:newutil.Color('white'),opacity:1,
depth:-1.0
depth:-2.0
});
polygon=newvisual.Rect({
...
...
@@ -301,7 +314,7 @@ async function experimentInit() {
angle_text=(("You are viewing from a distance of about "+(util.round((viewing_distance*10))/10).toString())+" cm.");
text_angle.setText((angle_text+"\n\nThe circle should have a visual angle of 10 degrees using size (10 * visual_angle * x_scale, 10 * visual_angle * y_scale)"));
polygon.setSize([(5*x_scale),(5*y_scale)]);
key_resp.keys=undefined;
key_resp.rt=undefined;
...
...
@@ -952,6 +968,7 @@ function rectangleRoutineBegin(snapshot) {
@@ -288,16 +289,28 @@ async function experimentInit() {
// Initialize components for Routine "rectangle"
rectangleClock=newutil.Clock();
text_angle=newvisual.TextStim({
win:psychoJS.window,
name:'text_angle',
text:'',
font:'Arial',
units:'norm',
pos:[0,0.8],height:0.075,wrapWidth:1.5,ori:0,
languageStyle:'LTR',
color:newutil.Color('white'),opacity:1,
depth:-1.0
});
text=newvisual.TextStim({
win:psychoJS.window,
name:'text',
text:"This shape should be a 5 cm square.\nComponent size (5*x_scale, 5*y_scale) set every repeat.\nThe circle should have a visual angle of 10 degrees using\nsize (10 * visual_angle * x_scale, 10 * visual_angle * y_scale)\nPress space to continue'",
text:"This shape should be a 5 cm square.\nComponent size (5*x_scale, 5*y_scale) set every repeat.\n\nPress space to continue'",
font:'Arial',
units:'norm',
pos:[0,(-0.8)],height:0.075,wrapWidth:1.5,ori:0,
languageStyle:'LTR',
color:newutil.Color('white'),opacity:1,
depth:-1.0
depth:-2.0
});
polygon=newvisual.Rect({
...
...
@@ -309,7 +322,7 @@ async function experimentInit() {
angle_text=(("You are viewing from a distance of about "+(util.round((viewing_distance*10))/10).toString())+" cm.");
text_angle.setText((angle_text+"\n\nThe circle should have a visual angle of 10 degrees using size (10 * visual_angle * x_scale, 10 * visual_angle * y_scale)"));
polygon.setSize([(5*x_scale),(5*y_scale)]);
key_resp.keys=undefined;
key_resp.rt=undefined;
...
...
@@ -957,6 +973,7 @@ function rectangleRoutineBegin(snapshot) {
<Paramval="$angle_text + "\n\nThe circle should have a visual angle of 10 degrees using size (10 * visual_angle * x_scale, 10 * visual_angle * y_scale)""valType="str"updates="set every repeat"name="text"/>
<Paramval="This shape should be a 5 cm square.&#10;Component size (5*x_scale, 5*y_scale) set every repeat.&#10;The circle should have a visual angle of 10 degrees using&#10;size (10 * visual_angle * x_scale, 10 * visual_angle * y_scale)&#10;Press space to continue'"valType="str"updates="constant"name="text"/>
<Paramval="This shape should be a 5 cm square.&#10;Component size (5*x_scale, 5*y_scale) set every repeat.&#10;&#10;Press space to continue'"valType="str"updates="constant"name="text"/>