-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpainpred.js
9167 lines (7791 loc) · 365 KB
/
painpred.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*****************
* Painpred Test *
*****************/
import { core, data, sound, util, visual, hardware } from './lib/psychojs-2022.2.4.js';
const { PsychoJS } = core;
const { TrialHandler, MultiStairHandler } = data;
const { Scheduler } = util;
//some handy aliases as in the psychopy scripts;
const { abs, sin, cos, PI: pi, sqrt } = Math;
const { round } = util;
// store info about the experiment session:
let expName = 'painpred'; // from the Builder filename that created this script
let expInfo = {
'participant': `${util.pad(Number.parseFloat(util.randint(0, 999999)).toFixed(0), 6)}`,
'session': '001',
};
// Start code blocks for 'Before Experiment'
// init psychoJS:
const psychoJS = new PsychoJS({
debug: true
});
// open window:
psychoJS.openWindow({
fullscr: true,
// fullscr: false,
color: new util.Color([(- 1.0), (- 1.0), (- 1.0)]),
units: 'height',
waitBlanking: true
});
// schedule the experiment:
psychoJS.schedule(psychoJS.gui.DlgFromDict({
dictionary: expInfo,
title: expName
}));
const flowScheduler = new Scheduler(psychoJS);
const dialogCancelScheduler = new Scheduler(psychoJS);
psychoJS.scheduleCondition(function() { return (psychoJS.gui.dialogComponent.button === 'OK'); }, flowScheduler, dialogCancelScheduler);
// flowScheduler gets run if the participants presses OK
flowScheduler.add(updateInfo); // add timeStamp
flowScheduler.add(experimentInit);
flowScheduler.add(sitRoutineBegin());
flowScheduler.add(sitRoutineEachFrame());
flowScheduler.add(sitRoutineEnd());
const trials_questionLoopScheduler = new Scheduler(psychoJS);
flowScheduler.add(trials_questionLoopBegin(trials_questionLoopScheduler));
flowScheduler.add(trials_questionLoopScheduler);
flowScheduler.add(trials_questionLoopEnd);
const trials_fail_quizLoopScheduler = new Scheduler(psychoJS);
flowScheduler.add(trials_fail_quizLoopBegin(trials_fail_quizLoopScheduler));
flowScheduler.add(trials_fail_quizLoopScheduler);
flowScheduler.add(trials_fail_quizLoopEnd);
const trials_pass_quizLoopScheduler = new Scheduler(psychoJS);
flowScheduler.add(trials_pass_quizLoopBegin(trials_pass_quizLoopScheduler));
flowScheduler.add(trials_pass_quizLoopScheduler);
flowScheduler.add(trials_pass_quizLoopEnd);
const trialsLoopScheduler = new Scheduler(psychoJS);
flowScheduler.add(trialsLoopBegin(trialsLoopScheduler));
flowScheduler.add(trialsLoopScheduler);
flowScheduler.add(trialsLoopEnd);
flowScheduler.add(pain_predictionRoutineBegin());
flowScheduler.add(pain_predictionRoutineEachFrame());
flowScheduler.add(pain_predictionRoutineEnd());
flowScheduler.add(pain_confidenceRoutineBegin());
flowScheduler.add(pain_confidenceRoutineEachFrame());
flowScheduler.add(pain_confidenceRoutineEnd());
flowScheduler.add(end_screenRoutineBegin());
flowScheduler.add(end_screenRoutineEachFrame());
flowScheduler.add(end_screenRoutineEnd());
flowScheduler.add(quitPsychoJS, '', true);
// quit if user presses Cancel in dialog box:
dialogCancelScheduler.add(quitPsychoJS, '', false);
psychoJS.start({
expName: expName,
expInfo: expInfo,
resources: [
{'name': 'instruction_images/instruction_1_2hour.png', 'path': 'instruction_images/instruction_1_2hour.png'},
{'name': 'instruction_images/first_slider_image.png', 'path': 'instruction_images/first_slider_image.png'},
{'name': 'instruction_images/instruction_2_2hour.png', 'path': 'instruction_images/instruction_2_2hour.png'},
{'name': 'instruction_images/second_slider_image.png', 'path': 'instruction_images/second_slider_image.png'},
{'name': 'instruction_images/instruction_3_new.png', 'path': 'instruction_images/instruction_3_new.png'},
{'name': 'instruction_images/confidence_slider.png', 'path': 'instruction_images/confidence_slider.png'},
{'name': 'instruction_images/next_button.png', 'path': 'instruction_images/next_button.png'},
{'name': 'instruction_images/start_button.png', 'path': 'instruction_images/start_button.png'},
{'name': 'instruction_images/vertical_white_rectangle.png', 'path': 'instruction_images/vertical_white_rectangle.png'},
{'name': 'instruction_images/hori_white_rectangle.png', 'path': 'instruction_images/hori_white_rectangle.png'},
{'name': 'instruction_images/finish_button.png', 'path': 'instruction_images/finish_button.png'},
{'name': 'instruction_images/confidence.PNG', 'path': 'instruction_images/confidence.PNG'},
{'name': 'instruction_images/pain_pred.PNG', 'path': 'instruction_images/pain_pred.PNG'},
{'name': 'instruction_images/2hour-task.png', 'path': 'instruction_images/2hour-task.png'},
{'name': 'instruction_images/predict_quiz_text.png', 'path': 'instruction_images/predict_quiz_text.png'},
{'name': 'instruction_images/confidence_quiz_instruction.png', 'path': 'instruction_images/confidence_quiz_instruction.png'},
{'name': 'instruction_images/trial_run_new.png', 'path': 'instruction_images/trial_run_new.png'},
{'name': 'instruction_images/slider_example_new.png', 'path': 'instruction_images/slider_example_new.png'},
{'name': 'instruction_images/example_text.png', 'path': 'instruction_images/example_text.png'},
{'name': 'instruction_images/dummyarea.png', 'path': 'instruction_images/dummyarea.png'},
{'name': 'instruction_images/dummyarea_black.png', 'path': 'instruction_images/dummyarea_black.png'},
{'name': 'instruction_images/star_new_yellow.png', 'path': 'instruction_images/star_new_yellow.png'},
{'name': 'instruction_images/attn_check_text_yellow_new.png', 'path': 'instruction_images/attn_check_text_yellow_new.png'},
{'name': 'instruction_images/attn_instructions.png', 'path': 'instruction_images/attn_instructions.png'},
{'name': 'instruction_images/instruction_1_new_.png', 'path': 'instruction_images/instruction_1_new_.png'},
{'name': 'instruction_images/pain_pred_instructions.png', 'path': 'instruction_images/pain_pred_instructions.png'},
]
});
psychoJS.experimentLogger.setLevel(core.Logger.ServerLevel.EXP);
var currentLoop;
var frameDur;
async function updateInfo() {
currentLoop = psychoJS.experiment; // right now there are no loops
expInfo['date'] = util.MonotonicClock.getDateStr(); // add a simple timestamp
expInfo['expName'] = expName;
expInfo['psychopyVersion'] = '2022.2.4';
expInfo['OS'] = window.navigator.platform;
psychoJS.experiment.dataFileName = (("." + "/") + `data/${expInfo["participant"]}_${expName}_${expInfo["date"]}`);
// store frame rate of monitor if we can measure it successfully
expInfo['frameRate'] = psychoJS.window.getActualFrameRate();
if (typeof expInfo['frameRate'] !== 'undefined')
frameDur = 1.0 / Math.round(expInfo['frameRate']);
else
frameDur = 1.0 / 60.0; // couldn't get a reliable measure so guess
// add info from the URL:
util.addInfoFromUrl(expInfo);
psychoJS.setRedirectUrls('https://www.google.com');
return Scheduler.Event.NEXT;
}
var sitClock;
var instruction_sit_text;
var next_button_sit;
var mouse_sit;
var blank1sClock;
var text;
var instruction_1Clock;
var next_button_1;
var mouse_1;
var slider_1;
var instruction_1_text_new;
var instruction_2Clock;
var next_button_2;
var mouse_2;
var slider_2;
var text_2;
var instruction_3Clock;
var mouse_3;
var start_button;
var slider_3;
var instruction_3_text;
var quiz_3_text;
//instruction for attn quiz
var instruction_attnClock;
var attn_star;
var start_button_attn;
var mouse_attn_instruction;
var instruction_attn_text;
var quiz_attn_text;
//continuous trial
var continuous_pain_rating_trialClock;
var vertical_1_trial;
var horiozntal_top_1_trial;
var horizontal_bottom_1_trial;
var pain_continuous_image_trial;
var most_pain_1_trial;
var least_pain_1_trial;
var continuous_pain_slider_trial;
var mouse_slider_trial;
var exampleClock; //new addition for example routine
var next_button_example; //new addition for example routine
var mouse_example; //new addition for example routine
var instruction_example_text; //new addition for example routine
var slider_example; //new addition for example routine
var quiz_end;
var question_slider_predictionClock; //new addition of question prediction slider
var question_slider_prediction; //new addition of question prediction slider
var question_slider_prediction_text; //new addition of question prediction slider
var vertical_question_prediction; //new addition of question prediction slider
var horizontal_top_question_prediction; //new addition of question prediction slider
var horizontal_bottom_question_prediction; //new addition of question prediction slider
var most_pain_question_prediction; //new addition of question prediction slider
var least_pain_question_prediction; //new addition of question prediction slider
/*
var pain_confidence_questionClock; //new addition of question confidence slider
var horizontal_central_confidence_question; //new addition of question confidence slider
var vertical_right_confidence_question; //new addition of question confidence slider
var vertical_left_confidence_question; //new addition of question confidence slider
var confidence_image_question; //new addition of question confidence slider
var confidence_slider_question; //new addition of question confidence slider
*/
//first attn test trial
var attn_check_trialClock; //attn check
var attn_check_image_trial; //attn check
var mouse_attn_trial; //attn check
var attn_check_instructions_trial; //attn check
var rand_pos_trial;
var slider_attn_trial;
var horizontal_bottom_attn_trial;
var horiozntal_top_attn_trial;
var vertical_attn_trial;
var most_pain_attn_trial;
var least_pain_attn_trial;
//second attn test trial
var attn_check_2_trialClock; //attn check
var attn_check_image_2_trial; //attn check
var mouse_attn_2_trial; //attn check
var attn_check_instructions_2_trial; //attn check
var rand_pos_2_trial;
var slider_attn_2_trial;
var horizontal_bottom_attn_2_trial;
var horiozntal_top_attn_2_trial;
var vertical_attn_2_trial;
var most_pain_attn_2_trial;
var least_pain_attn_2_trial;
//third attn test trial
var attn_check_3_trialClock; //attn check
var attn_check_image_3_trial; //attn check
var mouse_attn_3_trial; //attn check
var attn_check_instructions_3_trial; //attn check
var rand_pos_3_trial;
var slider_attn_3_trial;
var horizontal_bottom_attn_3_trial;
var horiozntal_top_attn_3_trial;
var vertical_attn_3_trial;
var most_pain_attn_3_trial;
var least_pain_attn_3_trial;
var pass_screenClock; //new addition for passing screen
var pass; //new addition for passing screen
var start_button_pass; //new addition for passing screen
var mouse_pass; //new addition for passing screen
var redirect_screenClock; //new addition for redirecting after failing
var redirect; //new addition for redirecting after failing
var next_button_redirect; //new addition for redirecting after failing
var mouse_redirect; //new addition for redirecting after failing
//first attn test
var attn_checkClock; //attn check
var attn_check_image; //attn check
var mouse_attn; //attn check
var attn_check_instructions; //attn check
var rand_pos;
var rectangle;
var circle;
var slider_attn;
var horizontal_bottom_attn;
var horiozntal_top_attn;
var vertical_attn;
var pain_continuous_image_attn;
var most_pain_attn;
var least_pain_attn;
//second attn test
var attn_check_2Clock; //attn check
var attn_check_image_2; //attn check
var mouse_attn_2; //attn check
var attn_check_instructions_2; //attn check
var rand_pos_2;
var rectangle_2;
var circle_2;
var slider_attn_2;
var horizontal_bottom_attn_2;
var horiozntal_top_attn_2;
var vertical_attn_2;
var pain_continuous_image_attn_2;
var most_pain_attn_2;
var least_pain_attn_2;
//third attn test
var attn_check_3Clock; //attn check
var attn_check_image_3; //attn check
var mouse_attn_3; //attn check
var attn_check_instructions_3; //attn check
var rand_pos_3;
var rectangle_3;
var circle_3;
var slider_attn_3;
var horizontal_bottom_attn_3;
var horiozntal_top_attn_3;
var vertical_attn_3;
var pain_continuous_image_attn_3;
var most_pain_attn_3;
var least_pain_attn_3;
var continuous_pain_ratingClock;
var dummy;
var vertical_1;
var horiozntal_top_1;
var horizontal_bottom_1;
var pain_continuous_image;
var most_pain_1;
var least_pain_1;
var continuous_pain_slider;
var mouse_slider;
var pain_predictionClock;
var vertical_2;
var horizontal_bottom_2;
var horizontal_top_2;
var pain_predict_image;
var most_pain_2;
var least_pain_2;
var pain_predict_slider;
var pain_confidenceClock;
var horizontal_central;
var vertical_right;
var vertical_left;
var confidence_image;
var confidence_slider_2;
//final test instructions
var instruction_2_endClock;
var next_button_2_end;
var mouse_2_end;
var slider_2_end;
var text_2_end;
var end_screenClock;
var ending;
var finish_button;
var mouse;
var end_failedClock; //failed screen
var end_failed; //failed screen
var finish_button_failed; //failed screen
var mouse_failed;
var globalClock;
var routineTimer;
var width = psychoJS.window.size[0]/1000;
var height = psychoJS.window.size[1]/1000;
var landscape=height>width?0:0.2;
var longside=height>width?height:width;
var rand_int;
var rand_int_trial;
var top = (0.3+landscape)*height;
var bottom = (-0.4-landscape)*height;
function getRndInteger(min, max) {
return Math.floor(Math.random() * (max - min + 1) ) + min;
}
async function experimentInit() {
// Initialize components for Routine "sit"
sitClock = new util.Clock();
instruction_sit_text = new visual.TextStim({
win: psychoJS.window,
name: 'instruction_sit_text',
text: 'Welcome! \n\nPlease ensure that you are sitting down.',
font: 'Arial',
units: undefined,
pos: [0, 0], height: 0.05, wrapWidth: undefined, ori: 0.0,
//pos: [0, (0.35+landscape/2)*height], height: 1.25*(0.04-landscape/20), wrapWidth: undefined, ori: 0.0,
languageStyle: 'LTR',
color: new util.Color('white'), opacity: undefined,
depth: 0.0
});
next_button_sit = new visual.ImageStim({
win : psychoJS.window,
name : 'next_button_sit', units : undefined,
image : 'instruction_images/next_button.png', mask : undefined,
ori : 0.0, pos : [0, ((- 0.45-landscape)*height)], size : [(0.1-landscape/3.8)*longside, (0.07-landscape/4.8)*longside],
//ori : 0.0, pos : [0, (- 0.45)], size : [0.1, 0.07],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -1.0
});
mouse_sit = new core.Mouse({
win: psychoJS.window,
});
mouse_sit.mouseClock = new util.Clock();
// Initialize components for Routine "blank1s"
blank1sClock = new util.Clock();
text = new visual.TextStim({
win: psychoJS.window,
name: 'text',
text: '',
font: 'Open Sans',
units: undefined,
pos: [0, 0], height: 0.05, wrapWidth: undefined, ori: 0.0,
languageStyle: 'LTR',
color: new util.Color('white'), opacity: undefined,
depth: 0.0
});
// Initialize components for Routine "instruction_1"
instruction_1Clock = new util.Clock();
slider_1 = new visual.ImageStim({
win : psychoJS.window,
name : 'slider_1', units : undefined,
image : 'instruction_images/first_slider_image.png', mask : undefined,
ori : 0.0, pos : [0, (- 0.1-landscape/1.8)*height], size : [(0.25-landscape/2)*longside, (0.45-landscape)*longside],
//ori : 0.0, pos : [0, (- 0.12)], size : [0.3, 0.55],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -2.0
});
next_button_1 = new visual.ImageStim({
win : psychoJS.window,
name : 'next_button_1', units : undefined,
image : 'instruction_images/next_button.png', mask : undefined,
ori : 0.0, pos : [0, ((- 0.45-landscape)*height)], size : [(0.1-landscape/3.8)*longside, (0.07-landscape/4.8)*longside],
//ori : 0.0, pos : [0, (- 0.45)], size : [0.1, 0.07],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : 0.0
});
mouse_1 = new core.Mouse({
win: psychoJS.window,
});
mouse_1.mouseClock = new util.Clock();
instruction_1_text_new = new visual.ImageStim({
win : psychoJS.window,
name : 'Instruction_txt_1', units : undefined,
image : 'instruction_images/instruction_1_new_.png', mask : undefined,
ori : 0.0, pos : [0.0, (0.3+landscape)*height], size : [0.55*longside, 0.2*longside],
//ori : 0.0, pos : [0.0, 0.45], size : [0.627, 0.09405],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -3.0
});
// Initialize components for Routine "instruction_attn"
instruction_attnClock = new util.Clock();
attn_star = new visual.ImageStim({
win : psychoJS.window,
name : 'attn_star', units : undefined,
image : 'instruction_images/star_new_yellow.png', mask : undefined,
ori : 0.0, pos : [0, (landscape/1.8)*height], size : [(0.1-landscape/3.8)*longside*0.85, (0.07-landscape/4.8)*longside*1.2*0.85],
//ori : 0.0, pos : [0, (- 0.12)], size : [0.3, 0.55],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -2.0
});
start_button_attn = new visual.ImageStim({
win : psychoJS.window,
name : 'start_button_attn', units : undefined,
image : 'instruction_images/start_button.png', mask : undefined,
ori : 0.0, pos : [0, ((- 0.45-landscape)*height)], size : [(0.1-landscape/3.8)*longside, (0.07-landscape/4.8)*longside],
//ori : 0.0, pos : [0, (- 0.45)], size : [0.1, 0.07],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : 0.0
});
mouse_attn_instruction = new core.Mouse({
win: psychoJS.window,
});
mouse_attn_instruction.mouseClock = new util.Clock();
instruction_attn_text = new visual.ImageStim({
win : psychoJS.window,
name : 'Instruction_txt_1', units : undefined,
image : 'instruction_images/attn_instructions.png', mask : undefined,
ori : 0.0, pos : [0.0, (0.3+landscape)*height], size : [0.55*longside, 0.1*longside],
//ori : 0.0, pos : [0.0, 0.45], size : [0.627, 0.09405],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -3.0
});
quiz_attn_text = new visual.ImageStim({
win : psychoJS.window,
name : 'quiz_attn_text', units : undefined,
image : 'instruction_images/trial_run_new.png', mask : undefined,
ori : 0.0, pos : [0.0, (-0.25+landscape)*height], size : [0.55*longside, 0.08*longside],
//ori : 0.0, pos : [0.0, 0.45], size : [0.627, 0.09405],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -3.0
});
// Initialize components for Routine "continuous_pain_rating_trial"
continuous_pain_rating_trialClock = new util.Clock();
vertical_1_trial = new visual.ImageStim({
win : psychoJS.window,
name : 'vertical_1', units : undefined,
image : 'instruction_images/vertical_white_rectangle.png', mask : undefined,
ori : 0.0, pos : [0, (- 0.05)*height], size : [0.02*width, (0.7+landscape*2)*height],
//ori : 0.0, pos : [0, (- 0.05)], size : [0.025, 0.8],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : 0.0
});
horiozntal_top_1_trial = new visual.ImageStim({
win : psychoJS.window,
name : 'horiozntal_top_1', units : undefined,
image : 'instruction_images/hori_white_rectangle.png', mask : undefined,
ori : 0.0, pos : [0, (0.3+landscape)*height], size : [0.1*width, 0.015*height],
//ori : 0.0, pos : [0, 0.35], size : [0.1, 0.02],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -1.0
});
horizontal_bottom_1_trial = new visual.ImageStim({
win : psychoJS.window,
name : 'horizontal_bottom_1', units : undefined,
image : 'instruction_images/hori_white_rectangle.png', mask : undefined,
ori : 0.0, pos : [0, (-0.4-landscape)*height], size : [0.1*width, 0.015*height],
//ori : 0.0, pos : [0, (- 0.45)], size : [0.1, 0.02],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -2.0
});
pain_continuous_image_trial = new visual.ImageStim({
win : psychoJS.window,
name : 'pain_continuous_image', units : undefined,
image : 'instruction_images/pain_pred.PNG', mask : undefined,
ori : 0.0, pos : [0.0, (0.4+landscape)*height], size : [0.55*longside, 0.08*longside],
//ori : 0.0, pos : [0.0, 0.45], size : [0.627, 0.09405],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -3.0
});
most_pain_1_trial = new visual.TextStim({
win: psychoJS.window,
name: 'most_pain_1',
text: 'Most Pain',
font: 'Arial',
units: undefined,
pos: [- 0.2*width, (0.3+landscape)*height], height: 0.04, wrapWidth: undefined, ori: 0.0,
//pos: [(- 0.15), 0.352], height: 0.03, wrapWidth: undefined, ori: 0.0,
languageStyle: 'LTR',
color: new util.Color('white'), opacity: undefined,
depth: -4.0
});
least_pain_1_trial = new visual.TextStim({
win: psychoJS.window,
name: 'least_pain_1',
text: 'Least Pain',
font: 'Arial',
units: undefined,
pos: [- 0.2*width, (-0.4-landscape)*height], height: 0.04, wrapWidth: undefined, ori: 0.0,
//pos: [(- 0.15), (- 0.445)], height: 0.03, wrapWidth: undefined, ori: 0.0,
languageStyle: 'LTR',
color: new util.Color('white'), opacity: undefined,
depth: -5.0
});
continuous_pain_slider_trial = new visual.Slider({
win: psychoJS.window, name: 'continuous_pain_slider',
startValue: undefined,
size: [0.05, (0.7+landscape*2)*height], pos: [0, (- 0.05)*height], ori: 0.0, units: 'height',
//size: [0.1, 0.8], pos: [0, (- 0.05)], ori: 0.0, units: 'height',
labels: undefined, fontSize: 0.03, ticks: [0, 1],
granularity: 0.0, style: ["RATING"],
color: new util.Color('white'), markerColor: new util.Color([1.0, 0.6, (- 1.0)]), lineColor: new util.Color('White'),
opacity: undefined, fontFamily: 'Arial', bold: true, italic: false, depth: -6,
flip: false,
});
continuous_pain_slider_trial._skin.MARKER_SIZE = [0.05, 0.05];
mouse_slider_trial = new core.Mouse({
win: psychoJS.window,
});
mouse_slider_trial.mouseClock = new util.Clock();
//Initialize Components for Routine "attn_check_trial"
attn_check_trialClock = new util.Clock();
//const rand_pos_list_x = [0.25*0.5, -0.5*0.75, -0.5*0.25, 0.5*0.75, 0.25*0.5, -0.5*0.75, -0.5*0.25, 0.5*0.75,0.25*0.5, -0.5*0.75, -0.5*0.25, 0.5*0.75, 0.25*0.5, -0.5*0.75, -0.5*0.25, 0.5*0.75];
//const rand_pos_list_y = [0.8+((0.5*0.2- 0.45-landscape)*height), 0.8+((0.5*0.2- 0.45-landscape)*height), 0.8+((0.5*0.2- 0.45-landscape)*height), 0.8+((0.5*0.2- 0.45-landscape)*height), -0.67+((- 0.45-landscape+0.5*0.5)*height)*-1, -0.67+((- 0.45-landscape+0.5*0.5)*height)*-1, -0.67+((- 0.45-landscape+0.5*0.5)*height)*-1, -0.67+((- 0.45-landscape+0.5*0.5)*height)*-1, 0.1+((0.5*0.6- 0.45-landscape)*height), 0.1+((0.5*0.6- 0.45-landscape)*height), 0.1+((0.5*0.6- 0.45-landscape)*height), 0.1+((0.5*0.6- 0.45-landscape)*height), 0.95+((0.5*0.2- 0.45-landscape)*height), 0.95+((0.5*0.2- 0.45-landscape)*height), 0.95+((0.5*0.2- 0.45-landscape)*height), 0.95+((0.5*0.2- 0.45-landscape)*height)];
const rand_pos_list_x = [-0.5*0.75, 0.5*0.75, -0.5*0.75, 0.5*0.75, -0.5*0.75, 0.5*0.75];
const rand_pos_list_y = [(0.3+landscape)*height-0.1, (0.3+landscape)*height-0.1, (-0.4-landscape)*height+0.1, (-0.4-landscape)*height+0.1, ((0.3+landscape)*height+(-0.4-landscape)*height)/2, ((0.3+landscape)*height+(-0.4-landscape)*height)/2];
rand_pos_trial = getRndInteger(0, 5);
var x_trial = rand_pos_list_x[rand_pos_trial];
var y_trial = rand_pos_list_y[rand_pos_trial];
attn_check_image_trial = new visual.ImageStim({
win : psychoJS.window,
name : 'attn_check_image_trial', units : undefined,
image : 'instruction_images/star_new_yellow.png', mask : undefined,
ori : 0.0, pos : [x_trial, y_trial], size : [(0.1-landscape/3.8)*longside*0.85, (0.07-landscape/4.8)*longside*1.2*0.85],
//ori : 0.0, pos : [0, (- 0.45)], size : [0.1, 0.07],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : 0.0
});
mouse_attn_trial = new core.Mouse({
win: psychoJS.window,
});
mouse_attn_trial.mouseClock = new util.Clock();
attn_check_instructions_trial = new visual.ImageStim({
win : psychoJS.window,
name : 'attn_test_1', units : undefined,
image : 'instruction_images/attn_check_text_yellow_new.png', mask : undefined,
ori : 0.0, pos : [0.0, (0.4+landscape)*height], size : [0.55*longside, 0.05*longside],
//ori : 0.0, pos : [0.0, 0.45], size : [0.627, 0.09405],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -3.0
});
vertical_attn_trial = new visual.ImageStim({
win : psychoJS.window,
name : 'vertical_attn', units : undefined,
image : 'instruction_images/vertical_white_rectangle.png', mask : undefined,
ori : 0.0, pos : [0, (- 0.05)*height], size : [0.02*width, (0.7+landscape*2)*height],
//ori : 0.0, pos : [0, (- 0.05)], size : [0.025, 0.8],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : 0.0
});
horiozntal_top_attn_trial = new visual.ImageStim({
win : psychoJS.window,
name : 'horiozntal_top_attn', units : undefined,
image : 'instruction_images/hori_white_rectangle.png', mask : undefined,
ori : 0.0, pos : [0, (0.3+landscape)*height], size : [0.1*width, 0.015*height],
//ori : 0.0, pos : [0, 0.35], size : [0.1, 0.02],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -1.0
});
horizontal_bottom_attn_trial = new visual.ImageStim({
win : psychoJS.window,
name : 'horizontal_bottom_attn', units : undefined,
image : 'instruction_images/hori_white_rectangle.png', mask : undefined,
ori : 0.0, pos : [0, (-0.4-landscape)*height], size : [0.1*width, 0.015*height],
//ori : 0.0, pos : [0, (- 0.45)], size : [0.1, 0.02],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -2.0
});
most_pain_attn_trial = new visual.TextStim({
win: psychoJS.window,
name: 'most_pain_attn',
text: 'Most Pain',
font: 'Arial',
units: undefined,
pos: [- 0.2*width, (0.3+landscape)*height], height: 0.04, wrapWidth: undefined, ori: 0.0,
//pos: [(- 0.15), 0.352], height: 0.03, wrapWidth: undefined, ori: 0.0,
languageStyle: 'LTR',
color: new util.Color('white'), opacity: undefined,
depth: -4.0
});
least_pain_attn_trial = new visual.TextStim({
win: psychoJS.window,
name: 'least_pain_attn',
text: 'Least Pain',
font: 'Arial',
units: undefined,
pos: [- 0.2*width, (-0.4-landscape)*height], height: 0.04, wrapWidth: undefined, ori: 0.0,
//pos: [(- 0.15), (- 0.445)], height: 0.03, wrapWidth: undefined, ori: 0.0,
languageStyle: 'LTR',
color: new util.Color('white'), opacity: undefined,
depth: -5.0
});
slider_attn_trial = new visual.Slider({
win: psychoJS.window, name: 'slider_attn',
startValue: undefined,
size: [0.05, (0.7+landscape*2)*height], pos: [0, (- 0.05)*height], ori: 0.0, units: 'height',
//size: [0.1, 0.8], pos: [0, (- 0.05)], ori: 0.0, units: 'height',
labels: undefined, fontSize: 0.03, ticks: [0, 1],
granularity: 0.0, style: ["RATING"],
color: new util.Color('white'), markerColor: new util.Color([1.0, 0.6, (- 1.0)]), lineColor: new util.Color('White'),
opacity: undefined, fontFamily: 'Arial', bold: true, italic: false, depth: -6,
flip: false,
});
slider_attn_trial._skin.MARKER_SIZE = [0.05, 0.05];
// Initialize components for "attn_check_2_trial"
attn_check_2_trialClock = new util.Clock();
rand_pos_2_trial = getRndInteger(0, 5);
var x_2_trial = rand_pos_list_x[rand_pos_2_trial];
var y_2_trial = rand_pos_list_y[rand_pos_2_trial];
attn_check_image_2_trial = new visual.ImageStim({
win : psychoJS.window,
name : 'attn_check_image_2_trial', units : undefined,
image : 'instruction_images/star_new_yellow.png', mask : undefined,
ori : 0.0, pos : [x_2_trial, y_2_trial], size : [(0.1-landscape/3.8)*longside*0.85, (0.07-landscape/4.8)*longside*1.2*0.85],
//ori : 0.0, pos : [0, (- 0.45)], size : [0.1, 0.07],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : 0.0
});
mouse_attn_2_trial = new core.Mouse({
win: psychoJS.window,
});
mouse_attn_2_trial.mouseClock = new util.Clock();
attn_check_instructions_2_trial = new visual.ImageStim({
win : psychoJS.window,
name : 'attn_check_text_2_trial', units : undefined,
image : 'instruction_images/attn_check_text_yellow_new.png', mask : undefined,
ori : 0.0, pos : [0.0, (0.4+landscape)*height], size : [0.55*longside, 0.05*longside],
//ori : 0.0, pos : [0.0, 0.45], size : [0.627, 0.09405],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -3.0
});
vertical_attn_2_trial = new visual.ImageStim({
win : psychoJS.window,
name : 'vertical_attn_2_trial', units : undefined,
image : 'instruction_images/vertical_white_rectangle.png', mask : undefined,
ori : 0.0, pos : [0, (- 0.05)*height], size : [0.02*width, (0.7+landscape*2)*height],
//ori : 0.0, pos : [0, (- 0.05)], size : [0.025, 0.8],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : 0.0
});
horiozntal_top_attn_2_trial = new visual.ImageStim({
win : psychoJS.window,
name : 'horiozntal_top_attn_2_trial', units : undefined,
image : 'instruction_images/hori_white_rectangle.png', mask : undefined,
ori : 0.0, pos : [0, (0.3+landscape)*height], size : [0.1*width, 0.015*height],
//ori : 0.0, pos : [0, 0.35], size : [0.1, 0.02],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -1.0
});
horizontal_bottom_attn_2_trial = new visual.ImageStim({
win : psychoJS.window,
name : 'horizontal_bottom_attn_2_trial', units : undefined,
image : 'instruction_images/hori_white_rectangle.png', mask : undefined,
ori : 0.0, pos : [0, (-0.4-landscape)*height], size : [0.1*width, 0.015*height],
//ori : 0.0, pos : [0, (- 0.45)], size : [0.1, 0.02],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -2.0
});
most_pain_attn_2_trial = new visual.TextStim({
win: psychoJS.window,
name: 'most_pain_attn_2_trial',
text: 'Most Pain',
font: 'Arial',
units: undefined,
pos: [- 0.2*width, (0.3+landscape)*height], height: 0.04, wrapWidth: undefined, ori: 0.0,
//pos: [(- 0.15), 0.352], height: 0.03, wrapWidth: undefined, ori: 0.0,
languageStyle: 'LTR',
color: new util.Color('white'), opacity: undefined,
depth: -4.0
});
least_pain_attn_2_trial = new visual.TextStim({
win: psychoJS.window,
name: 'least_pain_attn_2_trial',
text: 'Least Pain',
font: 'Arial',
units: undefined,
pos: [- 0.2*width, (-0.4-landscape)*height], height: 0.04, wrapWidth: undefined, ori: 0.0,
//pos: [(- 0.15), (- 0.445)], height: 0.03, wrapWidth: undefined, ori: 0.0,
languageStyle: 'LTR',
color: new util.Color('white'), opacity: undefined,
depth: -5.0
});
slider_attn_2_trial = new visual.Slider({
win: psychoJS.window, name: 'slider_attn_2_trial',
startValue: undefined,
size: [0.05, (0.7+landscape*2)*height], pos: [0, (- 0.05)*height], ori: 0.0, units: 'height',
//size: [0.1, 0.8], pos: [0, (- 0.05)], ori: 0.0, units: 'height',
labels: undefined, fontSize: 0.03, ticks: [0, 1],
granularity: 0.0, style: ["RATING"],
color: new util.Color('white'), markerColor: new util.Color([1.0, 0.6, (- 1.0)]), lineColor: new util.Color('White'),
opacity: undefined, fontFamily: 'Arial', bold: true, italic: false, depth: -6,
flip: false,
});
slider_attn_2_trial._skin.MARKER_SIZE = [0.05, 0.05];
// Initialize components for "attn_check_3_trial"
attn_check_3_trialClock = new util.Clock();
rand_pos_3_trial = getRndInteger(0, 5);
var x_3_trial = rand_pos_list_x[rand_pos_3_trial];
var y_3_trial = rand_pos_list_y[rand_pos_3_trial];
attn_check_image_3_trial = new visual.ImageStim({
win : psychoJS.window,
name : 'attn_check_image_3_trial', units : undefined,
image : 'instruction_images/star_new_yellow.png', mask : undefined,
ori : 0.0, pos : [x_3_trial, y_3_trial], size : [(0.1-landscape/3.8)*longside*0.85, (0.07-landscape/4.8)*longside*1.2*0.85],
//ori : 0.0, pos : [0, (- 0.45)], size : [0.1, 0.07],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : 0.0
});
mouse_attn_3_trial = new core.Mouse({
win: psychoJS.window,
});
mouse_attn_3_trial.mouseClock = new util.Clock();
attn_check_instructions_3_trial = new visual.ImageStim({
win : psychoJS.window,
name : 'attn_check_text_3_trial', units : undefined,
image : 'instruction_images/attn_check_text_yellow_new.png', mask : undefined,
ori : 0.0, pos : [0.0, (0.4+landscape)*height], size : [0.55*longside, 0.05*longside],
//ori : 0.0, pos : [0.0, 0.45], size : [0.627, 0.09405],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -3.0
});
vertical_attn_3_trial = new visual.ImageStim({
win : psychoJS.window,
name : 'vertical_attn_3_trial', units : undefined,
image : 'instruction_images/vertical_white_rectangle.png', mask : undefined,
ori : 0.0, pos : [0, (- 0.05)*height], size : [0.02*width, (0.7+landscape*2)*height],
//ori : 0.0, pos : [0, (- 0.05)], size : [0.025, 0.8],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : 0.0
});
horiozntal_top_attn_3_trial = new visual.ImageStim({
win : psychoJS.window,
name : 'horiozntal_top_attn_3_trial', units : undefined,
image : 'instruction_images/hori_white_rectangle.png', mask : undefined,
ori : 0.0, pos : [0, (0.3+landscape)*height], size : [0.1*width, 0.015*height],
//ori : 0.0, pos : [0, 0.35], size : [0.1, 0.02],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -1.0
});
horizontal_bottom_attn_3_trial = new visual.ImageStim({
win : psychoJS.window,
name : 'horizontal_bottom_attn_3_trial', units : undefined,
image : 'instruction_images/hori_white_rectangle.png', mask : undefined,
ori : 0.0, pos : [0, (-0.4-landscape)*height], size : [0.1*width, 0.015*height],
//ori : 0.0, pos : [0, (- 0.45)], size : [0.1, 0.02],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -2.0
});
most_pain_attn_3_trial = new visual.TextStim({
win: psychoJS.window,
name: 'most_pain_attn_3_trial',
text: 'Most Pain',
font: 'Arial',
units: undefined,
pos: [- 0.2*width, (0.3+landscape)*height], height: 0.04, wrapWidth: undefined, ori: 0.0,
//pos: [(- 0.15), 0.352], height: 0.03, wrapWidth: undefined, ori: 0.0,
languageStyle: 'LTR',
color: new util.Color('white'), opacity: undefined,
depth: -4.0
});
least_pain_attn_3_trial = new visual.TextStim({
win: psychoJS.window,
name: 'least_pain_attn_3_trial',
text: 'Least Pain',
font: 'Arial',
units: undefined,
pos: [- 0.2*width, (-0.4-landscape)*height], height: 0.04, wrapWidth: undefined, ori: 0.0,
//pos: [(- 0.15), (- 0.445)], height: 0.03, wrapWidth: undefined, ori: 0.0,
languageStyle: 'LTR',
color: new util.Color('white'), opacity: undefined,
depth: -5.0
});
slider_attn_3_trial = new visual.Slider({
win: psychoJS.window, name: 'slider_attn_3_trial',
startValue: undefined,
size: [0.05, (0.7+landscape*2)*height], pos: [0, (- 0.05)*height], ori: 0.0, units: 'height',
//size: [0.1, 0.8], pos: [0, (- 0.05)], ori: 0.0, units: 'height',
labels: undefined, fontSize: 0.03, ticks: [0, 1],
granularity: 0.0, style: ["RATING"],
color: new util.Color('white'), markerColor: new util.Color([1.0, 0.6, (- 1.0)]), lineColor: new util.Color('White'),
opacity: undefined, fontFamily: 'Arial', bold: true, italic: false, depth: -6,
flip: false,
});
slider_attn_3_trial._skin.MARKER_SIZE = [0.05, 0.05];
/*
// Initialize components for Routine "instruction_2"
instruction_2Clock = new util.Clock();
next_button_2 = new visual.ImageStim({
win : psychoJS.window,
name : 'next_button_2', units : undefined,
image : 'instruction_images/start_button.png', mask : undefined,
ori : 0.0, pos : [0, ((- 0.45-landscape)*height)], size : [(0.1-landscape/3.8)*longside, (0.07-landscape/4.8)*longside],
//ori : 0.0, pos : [0, (- 0.45)], size : [0.1, 0.07],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : 0.0
});
mouse_2 = new core.Mouse({
win: psychoJS.window,
});
mouse_2.mouseClock = new util.Clock();
slider_2 = new visual.ImageStim({
win : psychoJS.window,
name : 'slider_2', units : undefined,
image : 'instruction_images/second_slider_image.png', mask : undefined,
//ori : 0.0, pos : [0, (-0.05-landscape/1.8)*height], size : [(0.3-landscape/2)*longside, (0.55-landscape)*longside],
ori : 0.0, pos : [0, (-0.1-landscape)*height], size : [(0.25-landscape/2)*longside, (0.45-landscape)*longside],
//ori : 0.0, pos : [0, (- 0.12)], size : [0.3, 0.55],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -2.0
});
text_2 = new visual.ImageStim({
win : psychoJS.window,
name : 'Instruction_txt_2', units : undefined,
image : 'instruction_images/instruction_2_2hour.png', mask : undefined,
ori : 0.0, pos : [0.0, (0.3+landscape)*height], size : [0.55*longside, 0.104*longside],
//ori : 0.0, pos : [0.0, 0.45], size : [0.627, 0.09405],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -3.0
});
// Initialize components for Routine "instruction_3"
instruction_3Clock = new util.Clock();
mouse_3 = new core.Mouse({
win: psychoJS.window,
});
mouse_3.mouseClock = new util.Clock();
start_button = new visual.ImageStim({
win : psychoJS.window,
name : 'start_button', units : undefined,
image : 'instruction_images/start_button.png', mask : undefined,
ori : 0.0, pos : [0, ((- 0.45-landscape)*height)], size : [(0.1-landscape/3.8)*longside, (0.07-landscape/4.8)*longside],
//ori : 0.0, pos : [0, (- 0.45)], size : [0.1, 0.07],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -1.0
});
slider_3 = new visual.ImageStim({
win : psychoJS.window,
name : 'slider_3', units : undefined,
image : 'instruction_images/confidence_slider.png', mask : undefined,
ori : 0.0, pos : [0, 0], size : [0.375*longside, 0.15*longside],
//ori : 0.0, pos : [0, 0], size : [0.375, 0.15],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,
texRes : 128.0, interpolate : true, depth : -2.0
});
instruction_3_text = new visual.ImageStim({
win : psychoJS.window,
name : 'Instruction_txt_3', units : undefined,
image : 'instruction_images/instruction_3_new.png', mask : undefined,
ori : 0.0, pos : [0.0, (0.3+landscape)*height], size : [0.55*longside, 0.13*longside],
//ori : 0.0, pos : [0.0, 0.45], size : [0.627, 0.09405],
color : new util.Color([1,1,1]), opacity : undefined,
flipHoriz : false, flipVert : false,