Aug-18-2020, 02:50 PM
I have coded a picture of Bart Simpson using the goto() methods. One of the final setps is to draw the left eye, followed by the right eye. As Python completes the right eye (as you look at Bart), it draws a line across the nose to the left eye (as you look at Bart). I cannot get rid of it. I think I have closed shapes using my co-ordinates, so the fill should finish as I complete the right eye. It is very frustrating.
Be aware, the full code has a yellow head and other features. I am hoping I have successfully shared the code with you using this link: https://trinket.io/python/73b54cc24e
The code for just the eyes is:
Be aware, the full code has a yellow head and other features. I am hoping I have successfully shared the code with you using this link: https://trinket.io/python/73b54cc24e
The code for just the eyes is:
#eyeballs left eye bs.pu() bs.goto(-30,-10) bs.pd() bs.pensize(3) bs.circle(5) bs.pu() #eyeballs - right eye #eyeballs left eye bs.pu() bs.goto(50,-10) bs.pd() bs.pensize(3) bs.circle(5) bs.pu()