You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The tutorial on readthedocs describes how pop_matrix() resets the coordinate system.
To Reproduce
The following should set a circle at position 100*100, since the translation should not do anything doesn't do anything between push and pop. (green circle in the image)
However, a circle appears at position (200,200) not (100,100)
Expected behavior
I would expect pop_matrix() to call an error since it does not exist? seems that nothing happens. The correct way to do it is calling reset_matrix(). It does exactly what the tutorial describes. (yellow circle in the image)
We should rename reset_matrix() to pop_matrix.
Or rename push_matrix() to save_matrix() or something.
I'm new to p5py but tried p5.js a little bit. This confused me a lot.
Screenshots
Green colour is circle with pop_matrix() - it does nothing.
Yellow colour is circle with reset_matrix(). Expected behavour with pop_matrix()
The text was updated successfully, but these errors were encountered:
Describe the bug
The tutorial on readthedocs describes how pop_matrix() resets the coordinate system.
To Reproduce
The following should set a circle at position 100*100, since the translation should not do anything doesn't do anything between push and pop. (green circle in the image)
However, a circle appears at position (200,200) not (100,100)
Expected behavior
I would expect pop_matrix() to call an error since it does not exist? seems that nothing happens. The correct way to do it is calling reset_matrix(). It does exactly what the tutorial describes. (yellow circle in the image)
We should rename reset_matrix() to pop_matrix.
Or rename push_matrix() to save_matrix() or something.
I'm new to p5py but tried p5.js a little bit. This confused me a lot.
Screenshots

Green colour is circle with pop_matrix() - it does nothing.
Yellow colour is circle with reset_matrix(). Expected behavour with pop_matrix()
The text was updated successfully, but these errors were encountered: