Logo - What interpreter?
Hi all! I'm in middle school and I'm doing a Pong clone. Now a friend can help out by drawing graphics in logo, as he learned that. We are not going to buy anything, so can you point me out to some logo interpreters? Good ones? Free ones? Thanks.
P.S. I tried logo, but I never liked it, and never will. Rock on C++!
Is it possible for him to export it to a more accessable format such as bmp, jpg, or something else? Cause Logo is kind of an obscure format (in fact I've never heard of it). If you can change the format it will be easier to find 'interpriters'.
Quote:Original post by Axiverse
Is it possible for him to export it to a more accessable format such as bmp, jpg, or something else? Cause Logo is kind of an obscure format (in fact I've never heard of it). If you can change the format it will be easier to find 'interpriters'.
Uh, Logo is a Lisp-like programming language, not an image format...
EDIT: In response to the OP's question:
Here is Wikipedia's page on Logo implementations. Also, try not to be so closed-minded about non-C++ languages, they may grow on you.
Quote:Original post by RoboguyQuote:Original post by Axiverse
Is it possible for him to export it to a more accessable format such as bmp, jpg, or something else? Cause Logo is kind of an obscure format (in fact I've never heard of it). If you can change the format it will be easier to find 'interpriters'.
Uh, Logo is a Lisp-like programming language, not an image format...
Agreed. Logo is a kind of language for graphics. You can always export what you 'draw' with it to .jpg, .bmp, so on. And by interpreters, I mean something that will translate the statments, since as far as I know logo does not go through the compilation process. So, anyone have any good ideas?
P.S. Logo:
fd 100lt 90fd 100lt 90fd 100lt 90fd 100;All this draws a square;I believe this is the way for comments, no?
//Edit: I am not close-minded to C - based languages, its just that I dont like logo, it seems... how can I describe it... 'not as powerful'. C++ has many things in it; classes, pointers, so on...
//Edit2: I saw your edit, thanks.
When you're loading it in will you be using it as the application icon or as an image within the application? If it's the latter then why not use something like GTK and C++?
Quote:Original post by dudedbz1
//Edit: I am not close-minded to C - based languages, its just that I dont like logo, it seems... how can I describe it... 'not as powerful'. C++ has many things in it; classes, pointers, so on...
I believe you can simulate classes and possibly pointers (pointers are not usually needed for things in higher-level languages such as Logo, anyway).
Quote:Original post by RoboguyQuote:Original post by dudedbz1
//Edit: I am not close-minded to C - based languages, its just that I dont like logo, it seems... how can I describe it... 'not as powerful'. C++ has many things in it; classes, pointers, so on...
I believe you can simulate classes and possibly pointers (pointers are not usually needed for things in higher-level languages such as Logo, anyway).
How would you rewrite this:
std::vector<Image*> AllGraphics;AllGraphics.reserve(NUM_IMAGES);for (int i = 0; i < NUM_IMAGES; i++) AllGraphics.push_back(new Image);AllGraphics[P1_PADDLE]->Handle(P1_PADDLE, AllGraphics);...// At the endfor (int i = 0; i < AllGraphics.size(); i++) delete AllGraphics;
Logo is not that powerful, it doesnt interact directly with the system.
Quote:Original post by dudedbz1Quote:Original post by RoboguyQuote:Original post by dudedbz1
//Edit: I am not close-minded to C - based languages, its just that I dont like logo, it seems... how can I describe it... 'not as powerful'. C++ has many things in it; classes, pointers, so on...
I believe you can simulate classes and possibly pointers (pointers are not usually needed for things in higher-level languages such as Logo, anyway).
How would you rewrite this:std::vector<Image*> AllGraphics;AllGraphics.reserve(NUM_IMAGES);for (int i = 0; i < NUM_IMAGES; i++) AllGraphics.push_back(new Image);AllGraphics[P1_PADDLE]->Handle(P1_PADDLE, AllGraphics);...// At the endfor (int i = 0; i < AllGraphics.size(); i++) delete AllGraphics;
I don't know the Logo syntax, but you could do it by creating a list of graphics, adding functions to it (Logo is a functional language) which does what ever the Handle function does, then calling them.
Quote:
Logo is not that powerful, it doesnt interact directly with the system.
Powerful usually means high-level (more abstraction between the language and the hardware, and more possible user defined abstractions), not low-level.
Quote:Original post by RoboguyQuote:Original post by dudedbz1Quote:Original post by RoboguyQuote:Original post by dudedbz1
//Edit: I am not close-minded to C - based languages, its just that I dont like logo, it seems... how can I describe it... 'not as powerful'. C++ has many things in it; classes, pointers, so on...
I believe you can simulate classes and possibly pointers (pointers are not usually needed for things in higher-level languages such as Logo, anyway).
How would you rewrite this:std::vector<Image*> AllGraphics;AllGraphics.reserve(NUM_IMAGES);for (int i = 0; i < NUM_IMAGES; i++) AllGraphics.push_back(new Image);AllGraphics[P1_PADDLE]->Handle(P1_PADDLE, AllGraphics);...// At the endfor (int i = 0; i < AllGraphics.size(); i++) delete AllGraphics;
I don't know the Logo syntax, but you could do it by creating a list of graphics, adding functions to it (Logo is a functional language) which does what ever the Handle function does, then calling them.Quote:
Logo is not that powerful, it doesnt interact directly with the system.
Powerful usually means high-level (more abstraction between the language and the hardware, and more possible user defined abstractions), not low-level.
Whatever, this wasnt the question anyways. Just take it this way, I am not doing stuff in logo, I am doing stuff in C++; I am just in search of good logo interpreters.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement