We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 calling the Color constructor with this argument, a seemingly invalid _rgb array is produced:
Color
_rgb
>> (new util.Color((1.0000, 1, -1.0000)))._rgb << Array(3) [ 257, 1, 1 ]
When using this color in getContrastedColor, an error will be thrown. The resulting error message will be "all color components should be in [-1,1]".
getContrastedColor
Two suggestions:
Tested with Psychojs 2022.1.2 in Firefox.
Thanks for maintaining psychojs! :-)
@Jennybaga
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When calling the
Color
constructor with this argument, a seemingly invalid_rgb
array is produced:When using this color in
getContrastedColor
, an error will be thrown. The resulting error message will be "all color components should be in [-1,1]".Two suggestions:
_rgb
is always filled correctly.Tested with Psychojs 2022.1.2 in Firefox.
Thanks for maintaining psychojs! :-)
@Jennybaga
The text was updated successfully, but these errors were encountered: