Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color: PsychoJS uses util.Color while PsychoPy uses colors.Color #471

Open
TEParsons opened this issue Jan 7, 2022 · 1 comment
Open

Comments

@TEParsons
Copy link
Contributor

This causes problems like this user was having:
psychopy/psychopy#4344

when auto translating from Python to JS - if they were in the same place, they'd be able to do colors.Color('red') in Python and it would be new colors.Color('red') in JS. I can add to the transcriber that colors.Color needs to translate as util.Color, but in the interest of synchronicity shouldn't the libraries be structured the same as much as possible?

@apitiot
Copy link
Contributor

apitiot commented Jan 18, 2022

Since there is no "colors" sub-directory under the "psychopy" directory, I would advocate for the transpiler to take care of this.
Also "Color.js" would be very lonely in its own "colors" sub-directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants