Replies
Welcome, guest
Join CrazyEngineers to reply, ask questions, and participate in conversations.
CrazyEngineers powered by Jatra Community Platform
-
@lovejeet-etHdkD • Oct 15, 2010
wats d basic idea?? which type f clown??? -
@manish-r2Hoep • Oct 15, 2010
-
@lovejeet-etHdkD • Oct 15, 2010
sorry dear but which type of clowns??? plz give sum more details...... thanks 4 replyin... -
@vivek-khantwal-61sTQV • Oct 15, 2010
plz give me more details -
@manish-r2Hoep • Oct 15, 2010
Execute this program ,you will understand what type of clowns i am talking about
and you know something you can also make this clown dancing ,without using any animation tool
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
/*<applet code="Myclown" width=400 height=600></applet>*/
public class Myclown extends Applet implements Runnable
{
Thread t=null;
int i=0;
boolean stopflag;
public void init()
{
setBackground(Color.yellow);
}
public void start()
{
t=new Thread(this);
stopflag=true;
t.start();
}
public void run()
{
try
{
for(;😉
{
t.sleep(1000);
repaint();
}
}
catch(Exception e){}
}
public void stop()
{
t=null;
stopflag=false;
}
public void paint(Graphics g)
{
g.setColor(Color.green);
g.fillOval(100,8,200,200);
g.setColor(Color.pink);
g.fillOval(80,50,30,30);
g.setColor(Color.pink);
g.fillOval(290,50,30,30);
g.setColor(Color.black);
g.fillArc((240-(i*120)),50,30,30,0,360);
g.setColor(Color.white);
g.fillArc(120+(i*120),50,30,30,0,360);
g.setColor(Color.orange);
if(i==0)
{
g.fillArc(170,140,60,30,0,-180);
}
else
{
g.fillArc(170,140,60,30,0,180);
}
if(i>0)
{
i=0;
}
else
{
i++;
}
g.setColor(Color.red);
//body
g.fillRect(110,207,180,180);
//Arms
g.fillRect(10,207,380,10);
g.fillRect(150,380,10,200);
g.fillRect(240,380,10,200);
}
} -
@morningdot-6Xuj4M • Oct 15, 2010
Nice code it will display the output like this....
![[IMG]](proxy.php?image=http%3A%2F%2Fimg821.imageshack.us%2Fimg821%2F5973%2Fgoyal.png&hash=cfbf408524d25a33a7e5f29dba33c6a6)
But it's vary difficult to make our clown by this method goyal....I think a good idea to upload someone photoes and then edit them.
Have you remember the question i posted on CE how to make the gif animation using java programming.....Have you any idea how this can be done.....? -
@manish-r2Hoep • Oct 15, 2010
Have you ever tried unfreeze?
are you talking about some thing like that? -
@morningdot-6Xuj4M • Oct 15, 2010
I don't know anything about unfreeze.
What is this ?
.
Let take an example your code will display an animation.I just want to display that animation in a gif file. -
@manish-r2Hoep • Oct 16, 2010
No i never tried this
but will try and let you know
anyway unfreeze is a small software through which you can create gif animation using even powerpoint also -
@manish-r2Hoep • Oct 16, 2010
No I never tried this
but i will try and let you know about this
anyway unfreeze is a small software through which you can create gif animation using even powerpoint also -
@morningdot-6Xuj4M • Oct 16, 2010
I am using GIMP image editor(I rated it better then photoshop).
But the problem is that this type of image editor will take input only in the form of image files(.jpg,.gif,.png...etc etc).
Look at this picture...
![[IMG]](proxy.php?image=http%3A%2F%2Fimg213.imageshack.us%2Fimg213%2F7816%2Fgoga.png&hash=c54f1bdd861c27690624248862c95994)
I will repete the same image and get the output as this one
.
![[IMG]](proxy.php?image=http%3A%2F%2Fimg294.imageshack.us%2Fimg294%2F9417%2Fgoga1.gif&hash=a68752c8f5604c688be158c0dd37aeaf)
This is the main problem you have to capture all the pics that appiers in the applet animation which is a hard work.
And the 2nd problem is it will only take the input as image files .So how to input the applet animation.
.
Hope you got what i want to say...!! -
@manish-r2Hoep • Oct 16, 2010
No idea
did google help you? -
@manish-r2Hoep • Oct 19, 2010
Gosh
I just saw the clown image pasted by you in my pc .It doesn't look like this
Mohit did you really get output like this ?
when you execute this the clown should change its posture infinitely