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

When called for an image component, setColor does not update image color. #29

dvbridges opened this Issue Feb 9, 2019 · 1 comment


None yet
3 participants
Copy link

dvbridges commented Feb 9, 2019

In PsychoPy, you can change the color of your image component on every repeat or every frame using the Color parameter in the Builder image component. However, the code that is used for the JavaScript is not working - where "image" is the name of the image component:

image.setColor(new util.Color('red'))

This comment has been minimized.

Copy link

peircej commented Feb 11, 2019

The implementation in psychopy is essentially to multiply the image pixel color by the RGB of the designated color. We now do this with a shader but it used to be using textures combined with glColor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment