Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Grid Library
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
richardyi25




PostPosted: 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()



Grid.t
 Description:

Download
 Filename:  Grid.t
 Filesize:  1.23 KB
 Downloaded:  163 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: