Followers
0
Following
0
Joined
Last Online
-
mikerelay
Hi, I have been searching for a way to write a line segment to an array. Is there an easy way to do this or do I have to iterate through every slot in the array and set it's value?
thanks,
Mike -
mikerelay
Thanks, I think that actually answers my question. I wasn't sure whether I had to iterate through the table to draw a straight line like that.
-
mikerelay
Yeah, your example is exactly what I would like to do.
I would send a set of x,y pairs and write the points linearly incremented between them to an array. So if I send 0,0 and 1024,1 i would get a diagonal line from 0 to 1 across the whole array.