![]() ![]() Requires self.rgb, lorSpace and ntrast _getItemHeight ( item, ctrl = None ) ¶ _drawExternalDecorations ( ) ¶ĭraw decorations outside the aperture _getDesiredRGB ( rgb, colorSpace, contrast ) ¶Ĭonvert color to RGB while adding contrast. Items ( List) – List of TextStim or Slider item from survey _drawDecorations ( ) ¶ĭraw decorations on form. _calcSizeRendered ( ) ¶īy _updateVertices() and verticesPix _createItemCtrls ( ) ¶ĭefine layout of form _drawCtrls ( ) ¶ĭraw elements on form within border range. This functionality is now handledīy _updateVertices() and verticesPix. Legacy property for setting the foreground color of a stimulus in RGB, instead use obj._foreColor.rgb Type :ĭEPRECATED in 1.80.00. Randomize ( bool) – Randomize order of Form elements Units ( str) – units for stimuli - Currently, Form class only operates with ‘height’ units. ItemPadding ( float) – Space or padding between form items. Pos ( tuple, list) – Position of form on screen. Size ( tuple, list) – Size of form on screen. “layout”: Response object layout e.g., ‘horiz’ or ‘vert’ “options”: list of tick labels for options, “responseWidth”: fraction of the form width 0:1, “type”: type of rating e.g., ‘radio’, ‘rating’, ‘slider’ “itemWidth”: fraction of the form width 0:1 Items ( List of dicts or csv or xlsx file) – a list of dicts or csv file should have the following key, value pairs / column headers: Win ( ) – The window object to present the form. ![]() Simultaneously onscreen with a scrollable viewing window. Participants can be presented with a series of questions requiring responses.įorm items, defined as questions and response pairs, are presented The Form allows Psychopy to be used as a questionnaire tool, where Form ( win, name = 'default', colorSpace = 'rgb', fillColor = None, borderColor = None, itemColor = 'white', responseColor = 'white', markerColor = 'red', items = None, font = None, textHeight = 0.02, size = (0.5, 0.5), pos = (0, 0), style = None, itemPadding = 0.05, units = 'height', randomize = False, autoLog = True, depth = 0, color = None, foreColor = None ) ¶ Gets the current Form data and inserts into an ExperimentHandler object either as rows or as columnsĭetails ¶ class psychopy.visual. Whether every change in this stimulus should be auto logged.ĭetermines whether the stimulus should be automatically drawn on every frame flip. The name of the color space currently being used Returns True if a point x,y is inside the stimulus' border.Ī read-only property to determine if the current form is complete Sets both itemColor and responseColor to the same valueĭEPRECATED, depth is now controlled simply by drawing order.Ī value that is simply multiplied by the color. Import items from csv or excel sheet and convert to list of dicts.Įxtracts form questions, response ratings and response times from Form items The name ( str) of the object to be using during logged messages about this stim. The orientation of the stimulus (in degrees).ĭetermines how visible the stimulus is relative to background. Returns True if this stimulus intersects another one. The position of the center of the stimulus in the stimulus units Sets autoDraw for Form and any responseCtrl contained within Hard setter for fillColor, allows suppression of the log message, simultaneous colorSpace setting and calls update methods.įorm.setDepth(newDepth)įorm.setContrast(newContrast)įorm.setBorderColor(color)įorm.setBackColor(color) ![]() Hard setter for foreColor, allows suppression of the log message, simultaneous colorSpace setting and calls update methods.įorm.setFillColor(color) Hard setter for opacity, allows the suppression of log messages and calls the update methodįorm.setLineColor(color)ĭEPRECATED since v1.60.05: Please use the color attributeįorm.setForeColor(color) Usually you can use 'stim.attribute = value' syntax instead, but use this method if you need to suppress the log message.įorm.setOpacity(newOpacity) Usually you can use 'stim.attribute = value' syntax instead, but use this method if you need to suppress the log messageĭEPRECATED: Legacy setter for foreground RGB, instead set obj._foreColor.rgb The size (width, height) of the stimulus in the stimulus unitsįorm.setSize(newSize) Placeholder method to update colours when set externally, for example updating the pallette attribute of a textbox Placeholder method to update colours when set externally, for example updating the pallette attribute of a textbox. This determines the coordinates of the vertices for the current stimulus in pixels, accounting for size, ori, pos and units The Window object in which the stimulus will be rendered by default. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |