LOGO-L> 15-Word Lissajous using repcount 
Author Message
 LOGO-L> 15-Word Lissajous using repcount


<<
 The classic Lissajouis Curve (15W):
 repeat 360 [setxy (sin(2 * repcount)) * 150 (sin(3 * repcount)) * 150]

 or some random variations of it:
 repeat 360 [setxy (sin(89 * repcount)) * 150 (sin(179 * repcount)) * 150]
 repeat 360 [setxy (sin(254 * repcount)) * 150 (sin(201 * repcount)) * 150]
 repeat 360 [setxy (sin(327 * repcount)) * 150 (sin(66 * repcount)) * 150]
 etc.

 Bye,
 Samuel
  >>

The variations are great.

Notice how "repcount" gains you two words compared to "for".

For example, these are equivalent:
   for [i 1 10] [print :i]    (6 words)
   repeat 10 [print repcount]    (4 words)

For the Lissajous, these extra words are critical.

- Keith Enevoldsen

---------------------------------------------------------------





Tue, 19 Oct 1999 03:00:00 GMT  
 LOGO-L> 15-Word Lissajous using repcount


<<
 The classic Lissajouis Curve (15W):
 repeat 360 [setxy (sin(2 * repcount)) * 150 (sin(3 * repcount)) * 150]

 or some random variations of it:
 repeat 360 [setxy (sin(89 * repcount)) * 150 (sin(179 * repcount)) * 150]
 repeat 360 [setxy (sin(254 * repcount)) * 150 (sin(201 * repcount)) * 150]
 repeat 360 [setxy (sin(327 * repcount)) * 150 (sin(66 * repcount)) * 150]
 etc.

 Bye,
 Samuel
  >>

The variations are great.

Notice how "repcount" gains you two words compared to "for".

For example, these are equivalent:
   for [i 1 10] [print :i]    (6 words)
   repeat 10 [print repcount]    (4 words)

For the Lissajous, these extra words are critical.

- Keith Enevoldsen

---------------------------------------------------------------





Tue, 19 Oct 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. LOGO-L> Logo 15-Word Challenge Update

2. LOGO-L> Logo 15-Word Challange Update

3. LOGO-L> Re: Logo 15-Word Challenge

4. LOGO-L> Logo 15-Word Challenge

5. LOGO-L> Logo 15-word challenge update

6. LOGO-L> Logo 15-Word Challenge Update

7. LOGO-L> Logo 15-Word Challenge Update

8. LOGO-L> Re: 15-Word Challenge

9. LOGO-L> 15-Word Challenge Final Report

10. LOGO-L> 15-Word Challenge WINNERS

11. LOGO-L> 15-Word Challenge Rule Revision

12. [Fwd: LOGO-L> 15-Word Challenge WINNERS]

 

 
Powered by phpBB® Forum Software