A class implementing a screen output.
Each experiment and all stimuli need a screen instance to function. They are expecting this screen instance to be referenced in expyriment._active_exp.screen. Calling expyriment.control.intialize(exp) will automatically create such a screen instance and will additionally reference it in exp.screen for easy access.
Methods
Create and set up a screen output.
Parameters : | colour : (int, int, int)
open_gl : bool
window_mode : bool
window_size : (int, int)
|
---|
Notes
CAUTION: We discourage from creating a screen instance manually!
Getter for X-coordinate of the screen center.
Notes
Each initialized experiment has its one screen (exp.screen). Please use always the screen of your current experiment.
Getter for the Y-coordinate of the screen center.
Notes
Each initialized experiment has its one screen (exp.screen). Please use always the screen of your current experiment.
Clear the screen.
This will reset the default experimental background colour.
Getter for colour.
Getter for logging.
Getter for open_gl.
Save the content of the screen as a picture.
Parameters : | filename : str
|
---|
Set logging of this object on or off
Parameters : | onoff : bool
|
---|
Notes
See also design.experiment.set_log_level fur further information about event logging.
Getter for the size of the screen.
Notes
Each initialized experiment has its one screen (exp.screen). Please use always the screen of your current experiment.
Getter for surface.
Update the screen.
This will flip the display double buffer.
Update only some stimuli on the screen.
Parameters : | stimuli : list
|
---|
Notes
This does only work for non OpenGL screens.
Getter for window_mode.
Getter for window_size.