Friday, 6 September 2013

First tutorial of Processing

Task:


=====

1.) Create a simple animation using the framework, where a green car is driving along a road/straight line (e.g. represented by circle or triangle or box). When we click on the car with the mouse, it should turn red. The car should drive back in the other direction, when it reaches the end of the road (this behavior continues forever).



2.) allow to zoom in/out, while simulation is running and move around the view using the mouse. you can add other elements to the visualization if you think, for highlighting this feature.

3.) it should be possible to pause the simulation at any time and continue the animation from there again.


4.) it should be possible to set the speed of the simulation through the GUI.

5.) it should be possible to play the simulation backwards.

6.) a counter should show the number of frames which are over at the right bottom.


My Creativity: I use processing (open source IDE) to complete this task. The Syntax of  processing is very easy you can easily write a code. If you want to download a processing(Click here). 
Lets Talk about the GUI that how I Create GUI in Processing In my First Post I talk about that processing is very powerful tool you can plug-in many tools in it. If you want to learn how to plug-in  GUIBuilder (Click Here) .


It is also very easy to use and create GUI for Papplet. You have to only pick and drop the Button, Text Fields, Labels etc etc on the screen the code will automatically created by this tool. Also the Objects will automatically created. This is the best Feature of the processing.

No comments:

Post a Comment