Hi
I need to create a cellular automation model of traffic flow. The program will have a 1D road which will contain a user entered amount of cars which are represented on the road as a 1 or 0.
I need to know how to use the paint() method to create a rectangle with lines which seperate it into cells, I attatched an image of what I mean.
Also, how would I populate each cell with a number? I have a method which has an int array which represents the road and then a forumula which calculates each value ( 1 or 0) for the cell of the road but I do not know how to display this information using paint().
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.