« Re: Turtle drawing tool. (with flood fill capabili »

Welcome Guest. Please Login or Register.
Jan 20th, 2018, 6:12pm

Cross-platform BBC BASIC (Win32, Linux x86, Android, Mac OS-X, Raspberry Pi)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Re: Turtle drawing tool. (with flood fill capabili  (Read 365 times)
Richard Russell

member is offline


Homepage PM

Posts: 689
xx Re: Turtle drawing tool. (with flood fill capabili
« Thread started on: Aug 22nd, 2016, 08:30am »

on Aug 21st, 2016, 10:07pm, michael wrote:
I am working on an improved version so you can curve your draws and get more angles

I thought the essence of Turtle Graphics was that everything is relative, in other words you can turn (say) 90 clockwise without knowing in which direction you are currently pointing. So if you write some turtle code to draw an object, you can draw that same object in any orientation you like just by setting your initial direction.

Your code, on the other hand, seems to use absolute directions all the time. I'm no expert in the subject, but I fear that throws away many of the advantages of turtle-style graphics. I wonder why you didn't simply copy, for example, the Liberty BASIC way of doing it: it has commands GO for moving forwards (in whatever direction you are currently pointing) and TURN for changing your direction. It also has HOME and NORTH to establish an absolute reference.

You can even find BBC BASIC code for these commands in lblib.bbcc (the Liberty BASIC emulation library) so implementing them involves very little work!

« Last Edit: Aug 22nd, 2016, 10:40am by Richard Russell » User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Donate $6.99 for 50,000 Ad-Free Pageviews!

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls