Comments (4)
I think it's this line that decides when it has reached one point, so that it can go onto the next. You're probably running into floating point issues. Maybe it needs to check with a tolerance.
from mobilechelonian.
I have the same problem:
bob = Turtle()
n = 7
ang = round(360/n, 1)
ds = 50
for i in range(2):
bob.forward(ds)
bob.left(ang)
does not work properly. The angle has just 1 decimal number, but the turtle does not draw the second line.
from mobilechelonian.
I think the turtle's angle changes in steps, and it overshoots the correct angle and then gets stuck turning one degree left and one degree right. Here's the code for that:
Pull requests welcome :-)
from mobilechelonian.
I would like to speed up drawing circle
I use speed(10) method but not work.
As I know, drawing circle is using n-side line to finish this job
speed method only can help line section.
why?
from mobilechelonian.
Related Issues (18)
- The current version in pypi (0.4) isn't compatible with ipywidgets 7.x HOT 2
- Add more supported functions HOT 1
- Supporting jupyterlab? HOT 4
- Cornered turtle
- Messed up angles
- Floating Display Widget HOT 3
- Installation with Jupyter Notebooks HOT 4
- Working with Screen objects HOT 2
- Update to Jupyter APIs HOT 1
- Missing commands HOT 2
- New version for this extension HOT 2
- Version number does not match with the latest tag HOT 2
- speed(0) doesn't work as intended HOT 1
- Not working on Colab
- Doesnot output in jupyter HOT 7
- turtle strokeWidth seems too large HOT 5
- t.backward() going down instead of moving back HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mobilechelonian.