Jump to content
TroisVerites

About TPA : What is the best thing ?

Recommended Posts

Lets first decribe what a TPA is. TPA stands for TPoint Array, or an array of TPoints.

 

TPAs are good for storing multiple things. I use them for gathering multiple points off the screen that contain a certain color. then i group the points within the TPA and then find the largest group and find the middle of that group which will be the place on the screen that has the most of that color. This is just one way to use TPA's

Link to comment
Share on other sites

My TPA example in OSI - https://github.com/OSI1/OSI1/blob/master/Divi/Testing/TPAFunctions.scar

Just make sure you have OSI include installed (File->Includes Manager) then run that file

 

There is lots you can do with TPA's and ATPA's.

 

You can sort points out if they are not within a certain distance of another point in the array. etc.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...