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.
Getter for the Y-coordinate of the screen center.
Clear the screen.
This will reset the default experimental background colour.
Getter for colour.
Getter for open_gl.
Save the content of the screen as a picture.
Parameters : | filename : str
|
---|
Getter for the size of the screen.
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.