Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Present an image with background

edited November 2021 in OSWeb

Hello everyone,

In my experiment I would like to present small image, in the middle of the screen, with a background of a different image (e.g., a cat in a background of forest).

I did the same in my last experiment but it contains a word with a background and not a pic...

In addition, i have 50 images to present and i would like to mix between them and do not build a sequential presentation.

How can i do it? How to define the images and use them in my loop? I succsfully defined the backgrounds' images but not the stimulus' images.


THANK YOU!

Comments

  • Hi @zohar,

    if you'd like to randomize the background pictures independently of the small pictures, the way to do this is to store the filenames of the background pictures in an array, shuffle it, and then read from the shuffled array as the trials are presented. I'm a little confused because, if I understand correctly, this is the same problem you posted about your previous experiment. If so, the solution is actually the same as that I described before: https://forum.cogsci.nl/discussion/comment/24005#Comment_24005. The only different, as far as I can tell, is that in your new experiment, you'd have two pictures on your sketchpad (with the background one as the bottom one ; right click on the picture to raise or lower the picture relative to other objects on the sketchpad).

    I solved a similar problem in this thread: https://forum.cogsci.nl/discussion/7391/affect-misattribution-procedure. I think that following the that description, you should be able to achieve what you're trying to do.

    Hope this helps.

    Fabrice.

    Buy Me A Coffee

  • Hi @Fab

    Thank you for your answer. It is not exactly the same problem I posted earlier this year but your answer was very helpfull and the problem was solved :)

    I would like to ask one more question. I built the array and add all the objects to the pool but when I run the experiment, after presented most of the targets, I got an error "object non.jpg was not found". do you know what can I do to check and to fix it? I cant find the problem source, it's look like everything is correct.

    Last thing, I followed every step of your explanation and I would like to be sure that in this way each target will present only once. I have 50 targets and all of them should present once in a loop.

    Thank you!

    Zohar.

  • Hi @zohar,

    Hard to tell where the error comes from without seeing the task, but that error comes up because you're calling upon a picture called "non.jpg" somewhere in your program. Is that filename correct? I.e., do you have a picture with that name in the pool? Are you sure it's "non.jpg" and not "none.jpg"? I suspect the problem might come from the code you're using to create/shuffle the array or to read information from it when your trial runs.

    You could use code at different stages of your experiment to export key information to the browser's console. That would help working out when/where the error occurs exactly.

    Regarding the second question: if your array contains N elements and your loop run N trials, and provided that your code pulling elements from the array on every trial is correct, then yes, each element of the array would be presented once. Best way is to run your experiment and carefully check the output.

    Best,

    Fabrice.

    Buy Me A Coffee

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games