I have been trying to figure out why it does’nt draw a line where the “object” is located. I dont fully understand everything here like the vectors and pushing and poping so if someone could explain, that would be awesome.
Thanks in advance.
Also, pushing and popping styles and matrices are pretty simple. Image there’s a virtual stack of styles and matrices that you’ve used. Then, say, you want to draw a line a different color than what it’s currently set to. There, you can call pushStyle() to make a copy of your current style configuration, put it on the top of the virtual stack, and then you can modify the color by calling stroke(). When you’re done, maybe you wanted to use the previous color for line strokes. Since you took a copy of the style configuration before you modified it, you can call popStyle() to take the configuration at the top off the virtual stack off and use it again.
And styles are basically the color you have fill set to, stroke, tint, and line widths. Matrices are used for 3-D, like the current transform (3-D offset) and the scale of 3-D models.