Skip to content

Can't access PIXI objects directly in PsychoJS (from a visual component plugin) #606

@MaffDev

Description

@MaffDev

I'm working on a visual component plugin for both offline, and online with Pavlovia. The issue I'm having is that, for the online version, I need to be able to create PIXI objects to render my stimuli.

It doesn't seem like PsychoJS re-exports anything from the PIXI lib, and I'm not sure where it's stored when running from Pavlovia (I couldn't find it by trying to import from './lib/'). Is there a way to access PIXI via PsychoJS, or a good alternative?

The best I can think of is to try and include "pixi.js-legacy": "^6.0.4" in my experiment folder, or import it from a URL, but that seems a little wasteful. Is there a better approach?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions