seems like window.onload is not working. Why it is not running the code at line 48? https://codepen.io/user_jacob/pen/poyqPmQ
As I told you last time, the recommended way of doing it is to use document.addEventListener("DOMContentLoaded", () => {...}) Doing that instead of window.onload = function() {...} makes the code run. It still doesn't draw anything. I haven't figured out why yet
If you comment out the translation, rotation, and scaling, you get 1/4 of a ball in the top left corner, so it isn't far off
Thanks Simen de Lange. The reason I am using it is because I have another mini-project in my codepen called Arrow rotation (https://codepen.io/user_jacob/pen/oNxJxOx) window.onload worked! So I hoped that it would also work out of blue in this Sine Wave project.
Обсуждают сегодня