Prev: reverse the color map
Next: randomly placed shapes moving laterally, horizontally, or increasing in size
From: ylunsk Lun on 12 Jun 2010 21:25 Hi all, I'm pretty new to matlab but I need to construct a figure with several small moving objects preferably randomly placed in the figure field. The objects can be circular, oval, square, which ever is easier, and I want to make them move around in the figure. Maybe have them move up and down, left and right, or increase the objects in size as if they were coming towards the viewer. I would also like to restrict their movement so they don't more than 3 x their width. does anyone have any suggestions? Thanks in advance!
From: ImageAnalyst on 12 Jun 2010 21:35
Look up rectangle() and timer() in the help. |