Text
In [ ]:
Copied!
"""
The text 'press a or b or wait' is shown in pink for 2000ms. The allowed responses are 'a' and 'b'.
"""
"""
The text 'press a or b or wait' is shown in pink for 2000ms. The allowed responses are 'a' and 'b'.
"""
In [ ]:
Copied!
from sweetbean import Block, Experiment
from sweetbean.stimulus import Text
from sweetbean import Block, Experiment
from sweetbean.stimulus import Text
EVENT SEQUENCE
In [ ]:
Copied!
text = Text(
duration=2000, text="press a or b or wait", color="pink", choices=["a", "b"]
)
text = Text(
duration=2000, text="press a or b or wait", color="pink", choices=["a", "b"]
)
In [ ]:
Copied!
event_sequence = [text]
event_sequence = [text]
BLOCK DESIGN
In [ ]:
Copied!
block = Block(event_sequence)
experiment = Experiment([block])
block = Block(event_sequence)
experiment = Experiment([block])
In [ ]:
Copied!
experiment.to_html("text.html")
experiment.to_html("text.html")