Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Logo > Re: Help needed...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 1498 of 1596
Post > Topic >>

Re: Help needed to draw a spiral nautilus

by a11 <ashabsurya@[EMAIL PROTECTED] > Oct 30, 2007 at 12:29 PM

On Oct 29, 3:50 pm, Brian Adkins <lojicdot...@[EMAIL PROTECTED]
> wrote:
> On Oct 29, 3:44 pm, a11 <ashabsu...@[EMAIL PROTECTED]
> wrote:
>
> > Hi
>
> > I am trying to draw a spiral nautilus using  recursion in logo .  I
> > try to  draw a tail , a spiral which grows in size  and a curve which
> > chambers  . Can anyone help me with this ?
>
> Can you ask a more specific question and/or post some code exhibiting
> the problem you're experiencing?

I have the code below . I  draw a tail and a spiralrd , then a curve
for the chambers and continue with spiralrd , curve , tail to get  a
figure which looks like  this

http://www.allposters.com/-sp/Nautilus-Shell-Posters_i356711_.htm
TO tail :tsize1
	repeat 3[bk :tsize1 lt 10]
	repeat 3[rt 10 fd :tsize1]
end

to spiralrd :s :min :dec :tsize1 :csize

	if :s <= :min stop
	repeat 6[fd :s lt 10]
   CURVE :CSIZE
   tail :tsize1
 pd spiralrd :s/:dec :min :dec :tsize1/:dec :csize/:dec

end

to curve :csize
	pd repeat 6[lt 25 fd :csize ]
	repeat 6[bk :csize rt 25]
end

to chnaut
		make "s 30
	make "tsize1 30
	make "csize 30
	make "dec 2
	make "min 1
         pu home setxy[0 0]
	pd rt 180 rt 90	tail :tsize1
	spiralrd :s :min :dec :tsize1 :csize
end
 




 3 Posts in Topic:
Help needed to draw a spiral nautilus
a11 <ashabsurya@[EMAIL  2007-10-29 12:44:50 
Re: Help needed to draw a spiral nautilus
Brian Adkins <lojicdot  2007-10-29 15:50:32 
Re: Help needed to draw a spiral nautilus
a11 <ashabsurya@[EMAIL  2007-10-30 12:29:34 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 17:50:33 CDT 2008.