@jspsych/plugin-canvas-button-response
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

jspsych logo

jsPsych is a JavaScript framework for creating behavioral experiments that run in a web browser.

Plugin Description

The canvas-button-response plugin allows for an experimenter to draw a stimulus on an HTML canvas element, allowing for dynamic, parametrically-defined graphics, and for controlling the position of multiple graphical elements on the canvas (such as shapes, texts, or images). This stimulus can be displayed until a response is given, or for a specified amount of time. The trial may also be ended automatically if the partipicant fails to respond in a certain time. One or more button choices will be displayed under the canvas, which can be styled with HTML formatting.

Examples

Several example experiments and plugin demonstrations are available in the /examples folder. After you've downloaded the latest release, double-click on an example HTML file to run it in your web browser, and open it with a programming-friendly text editor to see how it works.

Documentation

Documentation for this plugin is available here.

Getting help

For questions about using the library, please use the GitHub discussions forum. You can also browse through the history of Q&A on the forum to find related questions.

Contributing

We ❤️ contributions! See the contributing to jsPsych documentation page for more information about how you can help.

Citation

If you use this library in academic work, the preferred citation is:

de Leeuw, J.R., Gilbert, R.A., & Luchterhandt, B. (2023). jsPsych: Enabling an open-source collaborative ecosystem of behavioral experiments. Journal of Open Source Software, 8(85), 5351, https://joss.theoj.org/papers/10.21105/joss.05351.

This paper is an updated description of jsPsych and includes all current core team members. It replaces the earlier paper that described jsPsych:

de Leeuw, J.R. (2015). jsPsych: A JavaScript library for creating behavioral experiments in a Web browser. Behavior Research Methods, 47(1), 1-12. doi:10.3758/s13428-014-0458-y

Citations help us demonstrate that this library is used and valued, which allows us to continue working on it.

Contributors

jsPsych is open source project with numerous contributors. The project is currently managed by the core team of Josh de Leeuw (@jodeleeuw), Becky Gilbert (@becky-gilbert), and Björn Luchterhandt (@bjoluc).

jsPsych was created by Josh de Leeuw.

We're also grateful for the generous support from a Mozilla Open Source Support award, which funded development of the library from 2020-2021.

Readme

Keywords

none

Package Sidebar

Install

npm i @jspsych/plugin-canvas-button-response

Weekly Downloads

65

Version

1.1.3

License

MIT

Unpacked Size

111 kB

Total Files

13

Last publish

Collaborators

  • bjoluc
  • jodeleeuw