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
Running display(array_length(src)) should return the height of the video/image.
display(array_length(src))
Correct values are only returned when HEIGHT is set between 300 and 500. For any values <300 or >500, display(array_length(src)) returns 300.
Run the code in Q3 of the mission: Expected result: 150, Actual result: 300
const WIDTH = 400; const HEIGHT = 150; function zoom(factor) { return (src, dest) => display(array_length(src)); } install_filter(zoom(2)); set_dimensions(WIDTH, HEIGHT); start();
The text was updated successfully, but these errors were encountered:
I am still able to reproduce this issue. The displayed output does not match the actual canvas dimensions.
Also, the REPL only updates with all the accumulated display values after rerunning the program. I am not sure if this was always the case.
Sorry, something went wrong.
This issue persists. Here is a link that does not require SA @ NUS: https://share.sourceacademy.org/ubyxy
No branches or pull requests
Prerequisites
Expected Behavior
Running
display(array_length(src))
should return the height of the video/image.Current Behavior
Correct values are only returned when HEIGHT is set between 300 and 500. For any values <300 or >500,
display(array_length(src))
returns 300.Failure Information (for bugs)
Steps to Reproduce
Run the code in Q3 of the mission: Expected result: 150, Actual result: 300
Context
The text was updated successfully, but these errors were encountered: