Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 971 Bytes

File metadata and controls

41 lines (25 loc) · 971 Bytes

plugin-storyboard

Overview

This will allow you to animate objects that are placed on a canvas.

Todo

Document the interactivity parameter

Loading

Enter instructions for loading the plugin package here.

Compatibility

plugin-storyboard requires jsPsych v8.0.0 or later.

Documentation

objects = [ { type: "image", src: "path to image", id: "ball", x: 500, y: 400 }, { type: "image", src: "path to image", id: "person", x: 500, y: 800 }, { type: "audio", src: "path to audio", onset: 500 } ]

animations = [ { type: "wiggle", id: "ball", onset: 500, durationPerWiggle: 200, wiggleAmount: 0.5, numberOfWiggles: 3 }, { type: "loom", id: "person", growthRate: relativeScale, maxSize: relativeScale, numberOfTimes }, { type: "translate", id: "person", onset: 0, x: 10, y: 100, duration: 3000 } ]

canvas_size:

background:

Author / Citation

jsPsychHackathon 2025