Randomobjectkinematogram
In [ ]:
Copied!
"""
The rok presents orientated objects (triangles).
50% of them move in an angle of 100deg and 50% randomly.
90% of them are orientated to the right and 10% randomly.
"""
"""
The rok presents orientated objects (triangles).
50% of them move in an angle of 100deg and 50% randomly.
90% of them are orientated to the right and 10% randomly.
"""
In [ ]:
Copied!
from sweetbean import Block, Experiment
from sweetbean.stimulus import RandomObjectKinematogram
from sweetbean import Block, Experiment
from sweetbean.stimulus import RandomObjectKinematogram
EVENT SEQUENCE
In [ ]:
Copied!
rok = RandomObjectKinematogram(
duration=3000,
number_of_oobs=500,
coherent_movement_direction=100,
coherent_orientation=0,
coherence_movement=50,
coherence_orientation=90,
movement_speed=10,
)
rok = RandomObjectKinematogram(
duration=3000,
number_of_oobs=500,
coherent_movement_direction=100,
coherent_orientation=0,
coherence_movement=50,
coherence_orientation=90,
movement_speed=10,
)
In [ ]:
Copied!
event_sequence = [rok]
event_sequence = [rok]
BLOCK DESIGN
In [ ]:
Copied!
block = Block(event_sequence)
block = Block(event_sequence)
In [ ]:
Copied!
# Create an image of the stimuli
block.to_image("./", data=None, sequence=False, timeline_idx="random", zoom_factor=1)
# Create an image of the stimuli
block.to_image("./", data=None, sequence=False, timeline_idx="random", zoom_factor=1)
In [ ]:
Copied!
# Create an HTML file of the experiment
experiment = Experiment([block])
experiment.to_html("randomobjectkinematogram.html")
# Create an HTML file of the experiment
experiment = Experiment([block])
experiment.to_html("randomobjectkinematogram.html")