Graphics Demo 1 Demo Experiment Run Experiment

Graphics Demo 1

Jaap Murre

If you are a registered user and signed in, you can here copy this script and its stimuli to your own account, where you can edit it and change it in any way you want.

It is absolutely free to register (no credit card info asked!). You can then instantly copy this experiment with one click and edit it, change its accompanying texts, its landing page, stimuli, etc. Invite your colleagues, friends, or students to check out your experiment. There is no limit on how many people can do your experiment, even with a free account.

The catch? There is no catch! Just keep in mind that with a free account, you cannot collect data. For teaching that is usually not a problem. For research, prepaid data collection (unlimited subjects) starts as low as €10.00 for a 10-day period."background-color","lightgrey");"background-color","yellow");

var surface = main.centerblock.getsurface(),
    size = {x:50,y:75,width:50,height:20},

    ellipse = surface.createEllipse({
        cx: size.x+"%",
        cy: size.y+"%",
        rx: size.width/2+"%",
        ry: size.height/2+"%"

    ps = main.centerblock.getshapeinpixels(),
    mx = ps.w/100, // multiplicatin factor pixels to %
    my = ps.h/100,

    poly = surface.createPolyline([
    {x: 25*mx, y: 25*my}, // Now coordinates can be in %; "25%" is not supported
    {x: 30*mx, y: 30*my}, 
    {x: 25*mx, y: 35*my}, 
    {x: 20*mx, y: 30*my}, 
    {x: 25*mx, y: 25*my}]);

//poly.setStroke({color:"blue"}); // MUST assign color, else not visible
poly.setStroke({ style: "Dash", width: 1, cap: "square", color: "blue" });

    console.log("Event: ",e);

input("No mouse clicks on covered block like this","name",50);

aspect.after(window,'onresize', function()

This experiment has no files of this type
This experiment has no files of this type
This experiment has no files of this type
This experiment has no YouTube links
This experiment has no files of this type