Computer Science Canada Grid Library |
Author: | richardyi25 [ Tue Nov 03, 2015 1:06 pm ] |
Post subject: | Grid Library |
Turing Grid Tool. Put this file in the same folder as your code file, and type include "Grid.t" at the beginning of the code. Documentation grid(x1, y1, x2, y2, x3, y3, c1, c2, c3) OR clickGrid(x1, y1, x2, y2, x3, y3, c1, c2, c3) where x1 and y1 are the amounts that the grid lines count by and x2 and y2 are the amounts that the bold grid lines count by and x3 and y3 are the amounts that the more bold grid lines count by c1 is the colour of the grid lines c2 is the colour of the bold grid lines c3 is the colour of the more bold grid lines grid() draws the grid at the time it is called clickGrid() draws the grid only when clicked preGrid() draws the grid with grid(20, 20, 80, 100, 320, 200, black, blue, red preClickGrid() combines clickGrid() and preGrid() |