We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Kumars Sketch: rotate, animate ellipse, text issue
Pages: 1 2 
Kumars Sketch: rotate, animate ellipse, text issue (Read 8973 times)
Re: Kumars Sketch: rotate, animate ellipse, text issue
Reply #15 - Jun 12th, 2010, 8:18am
 
ok, ive got a second thought, its probably not a big problem. why dont you guys implement the textbox the way you want it, post the source, and i will add the functionality. teamwork Shocked
Re: Kumars Sketch: rotate, animate ellipse, text issue
Reply #16 - Jun 12th, 2010, 7:51pm
 
Hi Cedric,
Thanks for your reply.

As you said,I kept the text box control on the map. u can download my code from below link

http://rapidshare.com/files/398399960/europetext.rar.html

Thank you
Re: Kumars Sketch: rotate, animate ellipse, text issue
Reply #17 - Jun 14th, 2010, 4:17am
 
you probably have to adjust it to your needs but its working... the important parts are the ones with "textvalue" in it

http://pastebin.de/7437
Re: Kumars Sketch: rotate, animate ellipse, text issue
Reply #18 - Jun 14th, 2010, 8:16am
 
Hi cedric

Its working cedric that was awesome work done by you.Spending valuable time for my thesis.Now I will show to my project supervisor.

                     Thank you very much .
Devika
Re: Kumars Sketch: rotate, animate ellipse, text issue
Reply #19 - Jun 14th, 2010, 8:31am
 
Good luck! hope the code helps kumar as well
Re: Kumars Sketch: rotate, animate ellipse, text issue
Reply #20 - Jun 14th, 2010, 8:40am
 
Hi Cedric,

Thanks a lot,Coming to my project am trying to draw different shapes. Am not able to increase or decrease size of a triangle when number of emails are more or less. The code am using to draw an triangle is
triangle(x,y,x+5,y-5,x+10,y), but for ellipse we can increase or decrease ellipse(x,y, pulse, pulse) size with pulse value.And also we need add motions to triangle same as ellipse.

Re: Kumars Sketch: rotate, animate ellipse, text issue
Reply #21 - Jun 14th, 2010, 8:58am
 
you can use scale to do so...
http://processing.org/reference/scale_.html
Re: Kumars Sketch: rotate, animate ellipse, text issue
Reply #22 - Jun 14th, 2010, 9:29am
 
Hi Cedric,

As you said I kept scale code but the triangles are shifting and the Email information text also changing. can u please check my code  

http://rapidshare.com/files/398979587/emailsupdate.rar.html.

I want to display triangle with number of emails information. If more emails big triangle less emails small triangles. how to show in animation way same as ellipse.

Thank you.
Re: Kumars Sketch: rotate, animate ellipse, text issue
Reply #23 - Jun 14th, 2010, 10:17am
 
you need to use push and popMatrix.

i also shifted your triangle
pushMatrix();
translate(x,y);
scale(pulse);
triangle(-5,5,5,5,0,-5);
popMatrix();
Re: Kumars Sketch: rotate, animate ellipse, text issue
Reply #24 - Jun 15th, 2010, 3:26am
 
Hi Cedric,

Awesome work done by you.Thanks a million for spending lot of time for my project. Smiley
Pages: 1 2