PureLogo

Share your advanced PureBasic knowledge/code with the community.
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

PureLogo

Post by dobro »

exemple de code LOGO

Code: Select all

let rouge=255
let vert=100
let bleu=0

repete 4
couleur 255 255 255
avance 100
tourne 90

repete 4
couleur rouge vert bleu
avance 50
tourne -90

repete 4
couleur 10 255 20
avance 25
tourne 90

repete 4
couleur 10 40 255
avance 12
tourne -90

repete 4
couleur 255 0 255
avance 6
tourne 90

fin_repete
fin_repete
fin_repete
fin_repete
fin_repete

Last edited by dobro on Sun Feb 05, 2012 9:00 pm, edited 5 times in total.
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Post by dobro »

I have just withdrawn some small bug! :lol:
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
User avatar
griz
Enthusiast
Enthusiast
Posts: 167
Joined: Sun Jun 29, 2003 7:32 pm
Location: Canada

Post by griz »

That's cool Dobro. I haven't used LOGO in years. I did write an subset of the PILOT programming language a few years ago, and that included turtle graphics.

BTW : How do you EXIT the running program?
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Post by dobro »

How do you EXIT the running program?

during the execution of the program right button mouse = stop the execution
left button mouse = leaves the graphic screen
then the small cross in top of the fenetre to leave the editor

:D

excuse my English I use a Web translator :lol:
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
Green Snake
User
User
Posts: 10
Joined: Sun Apr 17, 2005 12:11 pm

Post by Green Snake »

hi

thats a cool code:wink:


*thats my first text on this board :D *
dobro wrote:
excuse my English I use a Web translator :lol:
i too :mrgreen:
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Post by Hroudtwolf »

Hey Snake,

Do ya hope to learn english ? :D

;-)
Green Snake
User
User
Posts: 10
Joined: Sun Apr 17, 2005 12:11 pm

Post by Green Snake »

yes, I have English in the school :wink:
this language makes fun, exactly as purebasic :D
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Problem

Post by Fangbeast »

While you are using this program, the mouse is restricted to inside the borders of the logo window, even when the display window is not in focus!!

Otherwise, great job
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Re: Problem

Post by dobro »

Fangbeast wrote:While you are using this program, the mouse is restricted to inside the borders of the logo window, even when the display window is not in focus!!

Otherwise, great job
(during the execution of a long drawing) it is necessary to click with the right button that stop the drawing.... then the left button on the fenetre graphic call the ahead plane editor and libere the mouse! the end of a short drawing has (in time) the fenetre graphic remainder in front to look at the drawing... one clicks left button on the fenetre graphic call the ahead plane editor and libere the mouse!

one should not seek has to call the editor in theory it must only pass by again all ahead plane


thank you for the report/ratio for bug :D
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

I used to love logo

Post by Fangbeast »

Had it on my first "real" computer; an AMSTRAD. It had interactive mode as well, where you could type in one line at a time and see immediate results and I would sit and play for hours.

Would it be possible to add that as well?
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Post by dobro »

I gave the source code here so that you can modify it has your own way... or to inspire to you by the principle of coding for make small a language... this listing has initially an educational goal, that to explain the bases of a "interpreté language" structured around a simple pile (thanks to the LinkedList ).. :D
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Post by dobro »

I excuse myself my English, I use a translator Web ....

I have just finished a small interpretor LOGO made with purebasic
he can receive the French or English orders or the 2...

a help exists in English, but resulting from a translation with
a translator Web...

say to me what think you

still excuse my bad English.:D

............................................
je viens de terminer un petit interpreteur LOGO
fait avec purebasic
il peut recevoir les commandes en anglais ou en français ou les 2 ...
l'aide a ete faite a l'aide d'un traducteur web :?

merci de me dire ce que vous en pensez :D

purelogo est une version personel du Logo , qui s'inspire des commandes
qui ont fait la renomée du logo..... amusez-vous bien ...

un exemple de code logo :D

http://www.logitheque.com/logiciels/win ... _22714.htm

Code: Select all

  let taille=12
  let b=0
  let t=0
  let rouge=0
  let vert=0
  let bleu=0



   to [cube]
     let t=0-{taille}
      repeat 4
        forward taille
        turn 90
      end_repeat

     forward taille
     turn 45
     forward taille
     turn 45
     forward taille
     turn 135
     forward taille     
     forward t
     turn -45
     forward taille
     turn 45
     forward taille
     home     
   end_to

   repeat 32
     let b={b}+1
     rnd 255, rouge
     rnd 255, vert
     rnd 255, bleu

     let rouge={rouge}+50
     let vert={vert}+50
     let bleu={bleu}+50
     color rouge, vert, bleu
     [cube]
     turn 90
      if b=8
        let taille={taille}*2
        let b=0
      endif
   end_repeat 
result :

Image
Last edited by dobro on Sun Feb 05, 2012 9:26 pm, edited 3 times in total.
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Post by dobro »

the last version is possibility dowload here :

http://www.logitheque.com/logiciels/win ... _22714.htm

many exemples are including in the CHM and this one is include into the zip !

thanks for yours ideas


i remind you that PUREGOLO is the interpreter GOLO
and the GOLO is the clone of LOGO ... :D

current version is V 5.00 :D
Last edited by dobro on Sun Feb 05, 2012 9:02 pm, edited 1 time in total.
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
User avatar
dobro
Enthusiast
Enthusiast
Posts: 766
Joined: Sun Oct 31, 2004 10:54 am
Location: France
Contact:

Post by dobro »

hello

new version of my pureGolo V6.00
include a help (Google translation) in English

I remind to you that pureGolo

is a small interpreter of a language which I create which resemble the LOGO for the with dimensions graph with a tortoise
but which is based on the structure of the BASIC
with an instruction by line of code
the role of this program is of permetre to the children to be able to approach the programming in an amusing way: D but not only children, well on : D the licence is freeware for the holder of a licence purebasic: D

has to download here:
http://www.logitheque.com/logiciels/win ... _22714.htm

thanks :D
Image
Windows 98/7/10 - PB 5.42
■ sites : http://michel.dobro.free.fr/
User avatar
aston
User
User
Posts: 64
Joined: Wed Nov 18, 2009 11:18 pm

Re: PureLogo

Post by aston »

Hi Michel
How i can download GOLO and looking good your EBP editor
thanks

ps...happy new year :)
Post Reply