Create your clown without using any software

Manish Goyal

Manish Goyal

@manish-r2Hoep Oct 19, 2024
Let us make a clown without using any other third party tool.

You can use any programming language

It may be in java,c++,.net or any other language of your choice.

To create a clown it doesn't require knowledge of graphics ,you can create better shapes without it

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • lovejeet

    lovejeet

    @lovejeet-etHdkD Oct 15, 2010

    wats d basic idea?? which type f clown???
  • Manish Goyal

    Manish Goyal

    @manish-r2Hoep Oct 15, 2010

    It can be of any type

    You have to just show your creativity using codes
  • lovejeet

    lovejeet

    @lovejeet-etHdkD Oct 15, 2010

    sorry dear but which type of clowns??? plz give sum more details...... thanks 4 replyin...
  • vivek khantwal

    vivek khantwal

    @vivek-khantwal-61sTQV Oct 15, 2010

    plz give me more details
  • Manish Goyal

    Manish Goyal

    @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 Hablu

    Morningdot Hablu

    @morningdot-6Xuj4M Oct 15, 2010

    Nice code it will display the output like this....
    [​IMG]


    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 Goyal

    Manish Goyal

    @manish-r2Hoep Oct 15, 2010

    Have you ever tried unfreeze?
    are you talking about some thing like that?
  • Morningdot Hablu

    Morningdot Hablu

    @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 Goyal

    Manish Goyal

    @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 Goyal

    Manish Goyal

    @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 Hablu

    Morningdot Hablu

    @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]

    I will repete the same image and get the output as this one
    .
    [​IMG]
    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 Goyal

    Manish Goyal

    @manish-r2Hoep Oct 16, 2010

    No idea
    did google help you?
  • Manish Goyal

    Manish Goyal

    @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