Computer Science Canada My drawing program |
Author: | Rakusan2 [ Sat Dec 10, 2011 7:07 pm ] |
Post subject: | My drawing program |
I never programed in my life but I started learning turing 2 months ago in my Computer Technology class and used it only few times, but because of my good logic thinking I created this in just two half days because I don't have lot of time to program. |
Author: | ttm [ Sat Dec 10, 2011 8:53 pm ] |
Post subject: | Re: My drawing program |
Cool. I recommend you use hasch/getch instead of Input.KeyDown, so the colors don't change as quickly when you use arrow keys. Also, try not to use one or two letter variable names because that makes your code confusing to read. Also press f2 every once in a while. Also, you should Pic.Free your pictures because turing only supports 1000 Pic.New or Pic.FileNew calls before throwing an error unless you free your pictures. (I think. Don't quote me.) Also, if you draw really quickly, you can see that it draws individual dots instead of a continuous line. You can fix this by using Draw.ThickLine. Also, you don't have to do chr (32), you can just do ' '. Anyways very cool program; if only I could figure out what change color does... |
Author: | Rakusan2 [ Sat Dec 10, 2011 9:53 pm ] |
Post subject: | Re: My drawing program |
Change Color menu lets you change color with which you have drawn to a different color The color changes rapidly because I forgot two brackets. I don't use f2 because I like to have the loops more clear so I know in which loop I am in. |