List of all members.
Member Function Documentation
def unlock.view.UnlockViewFactory.create_checkerboard_sprite |
( |
|
self, |
|
|
|
model, |
|
|
|
canvas, |
|
|
|
cb_properties, |
|
|
|
position = SpritePositionComputer.Center , |
|
|
|
x_offset = 0 , |
|
|
|
y_offset = 0 , |
|
|
|
rotation = 0 | |
|
) |
| | |
def unlock.view.UnlockViewFactory.create_checkerboard_texture |
( |
|
self, |
|
|
|
properties | |
|
) |
| | |
Creates a checkerboard image
This takes advantage of the fact that adding two tuples together
results in them being concatenated into a new tuple. Multiplying a
tuple (in this case the RGB values of the pixel color) by an integer
then results in the tuple being concatenated with itself that many
times. This allows us to quickly build up the tuple representing the
pixel values of the checkerboard texture.
:param properties: an instance of a CheckerboardProperties object
def unlock.view.UnlockViewFactory.create_checkered_box_sprite |
( |
|
self, |
|
|
|
model, |
|
|
|
canvas, |
|
|
|
position = SpritePositionComputer.Center , |
|
|
|
rotation = 0 , |
|
|
|
width = 600 , |
|
|
|
height = 100 , |
|
|
|
xfreq = 6 , |
|
|
|
yfreq = 1 , |
|
|
|
xduty = 0.5 , |
|
|
|
yduty = 0.5 , |
|
|
|
xoffset = 0 , |
|
|
|
yoffset = 0 , |
|
|
|
xuneven = False , |
|
|
|
yuneven = False , |
|
|
|
color_on = (0,0 , |
|
|
|
color_off = (255,255 | |
|
) |
| | |
def unlock.view.UnlockViewFactory.create_checkered_box_texture_region |
( |
|
self, |
|
|
|
width = 600 , |
|
|
|
height = 100 , |
|
|
|
xfreq = 6 , |
|
|
|
yfreq = 1 , |
|
|
|
xduty = 0.5 , |
|
|
|
yduty = 0.5 , |
|
|
|
xuneven = False , |
|
|
|
yuneven = False , |
|
|
|
color_on = (0,0 , |
|
|
|
color_off = (255,255 | |
|
) |
| | |
Creates a checkerboard image
:param size: image width and height
:param frequencies: spatial frequencies in the x and y directions
:param duty_cycles: ratio of 'on' to 'off' in the x and y directions
:param uneven: is the last cycle only half-width or -height?
:param colors: 'on' and 'off' rgb values
def unlock.view.UnlockViewFactory.create_fastpad_button |
( |
|
self, |
|
|
|
rect, |
|
|
|
labels, |
|
|
|
actions, |
|
|
|
canvas | |
|
) |
| | |
def unlock.view.UnlockViewFactory.create_fastpad_view |
( |
|
self, |
|
|
|
model, |
|
|
|
canvas | |
|
) |
| | |
def unlock.view.UnlockViewFactory.create_flickering_checkerboard_sprite |
( |
|
self, |
|
|
|
model, |
|
|
|
canvas, |
|
|
|
cb_properties, |
|
|
|
position = SpritePositionComputer.Center , |
|
|
|
x_offset = 0 , |
|
|
|
y_offset = 0 , |
|
|
|
rotation = 0 , |
|
|
|
reversal = True | |
|
) |
| | |
def unlock.view.UnlockViewFactory.create_flickering_checkered_box_sprite |
( |
|
self, |
|
|
|
model, |
|
|
|
canvas, |
|
|
|
position = SpritePositionComputer.Center , |
|
|
|
rotation = 0 , |
|
|
|
width = 600 , |
|
|
|
height = 100 , |
|
|
|
xfreq = 6 , |
|
|
|
yfreq = 1 , |
|
|
|
xduty = 0.5 , |
|
|
|
yduty = 0.5 , |
|
|
|
xoffset = 0 , |
|
|
|
yoffset = 0 , |
|
|
|
xuneven = False , |
|
|
|
yuneven = False , |
|
|
|
color_on = (0,0 , |
|
|
|
color_off = (255,255 , |
|
|
|
reversal = True | |
|
) |
| | |
def unlock.view.UnlockViewFactory.create_frequency_scope_view |
( |
|
self, |
|
|
|
model, |
|
|
|
canvas, |
|
|
|
labels = None | |
|
) |
| | |
def unlock.view.UnlockViewFactory.create_grid_view |
( |
|
self, |
|
|
|
model, |
|
|
|
canvas, |
|
|
|
icons, |
|
|
|
center_x, |
|
|
|
center_y, |
|
|
|
rect_xoffset = 64 , |
|
|
|
rect_yoffset = 64 , |
|
|
|
icon_width = 128 , |
|
|
|
icon_height = 128 | |
|
) |
| | |
def unlock.view.UnlockViewFactory.create_grid_view |
( |
|
self, |
|
|
|
state, |
|
|
|
canvas, |
|
|
|
icons | |
|
) |
| | |
def unlock.view.UnlockViewFactory.create_gridspeak |
( |
|
self, |
|
|
|
state, |
|
|
|
canvas | |
|
) |
| | |
def unlock.view.UnlockViewFactory.create_hierarchy_grid_view |
( |
|
self, |
|
|
|
state, |
|
|
|
canvas | |
|
) |
| | |
def unlock.view.UnlockViewFactory.create_image_pyglet_sprit |
( |
|
self, |
|
|
|
model, |
|
|
|
canvas, |
|
|
|
filename, |
|
|
|
x = 0 , |
|
|
|
y = 0 , |
|
|
|
rotation = 0 | |
|
) |
| | |
def unlock.view.UnlockViewFactory.create_quad_msequence_view |
( |
|
self, |
|
|
|
stimuli, |
|
|
|
canvas, |
|
|
|
cb_properties | |
|
) |
| | |
def unlock.view.UnlockViewFactory.create_quad_ssvep_views |
( |
|
self, |
|
|
|
stimuli, |
|
|
|
canvas, |
|
|
|
cb_properties | |
|
) |
| | |
def unlock.view.UnlockViewFactory.create_robot_controller_view |
( |
|
self, |
|
|
|
model, |
|
|
|
canvas | |
|
) |
| | |
def unlock.view.UnlockViewFactory.create_robot_grid_view |
( |
|
self, |
|
|
|
state, |
|
|
|
canvas | |
|
) |
| | |
def unlock.view.UnlockViewFactory.create_single_msequence_view |
( |
|
self, |
|
|
|
stimulus, |
|
|
|
canvas, |
|
|
|
cb_properties | |
|
) |
| | |
def unlock.view.UnlockViewFactory.create_single_ssvep_view |
( |
|
self, |
|
|
|
stimulus, |
|
|
|
canvas, |
|
|
|
cb_properties | |
|
) |
| | |
def unlock.view.UnlockViewFactory.create_time_view_scope |
( |
|
self, |
|
|
|
model, |
|
|
|
canvas, |
|
|
|
labels = None | |
|
) |
| | |
The documentation for this class was generated from the following file: