mini project – Object Dancer

Click here to view my work

 

 

 

 

Description:

in this mini-project, I tried to create an alien-like moving image that can be described as a “dancing alien.” So firstly, I used simple elements like circles, ellipses, and lines to draw the image. Here are the functions I used to draw each part of the image.

When I coded the arms, I found it interesting when adding random() to the coordinate of the line as it created a magical visual effect like a wing.

And the properties of the dancer:

To make the dancer swing, I used the swing() function and variables. sin() function is also used.

Finally, I put the functions with “this” in the display() and update() to realize all the settings and movements.

Reflections:

the use of class makes the coding more organized and the object is more clearly orientated.

I think the use of the dancer class makes the dancer object is itself a process of modularization, and it also makes the reuse of the dancer object easier.

 

thank you for viewing it.

Leave a Reply

Your email address will not be published. Required fields are marked *