View Single Post
  #1  
Old 01-05-2012, 06:01 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Images along a line

I wanted to ask, how you could show images along a line. Let´s say my line starts from:
x: 2
y: 3

and ends at:
x: 50
y: 36

I know how I could use it with a poly.
PHP Code:
showpoly(200, {x1y1x2y2}); 
What I want is to have images along that line. That´s also not hard since I could stretch an Image (in case the length doesn´t match)
Click image for larger version

Name:	Unbenannt3.png
Views:	283
Size:	2.5 KB
ID:	54164
but how could I have, lets say a 16x16 pixel image, shown over and over on that line without stretching it?
Examples below (done in Paint.NET)
Click image for larger version

Name:	Unbenannt.png
Views:	305
Size:	2.2 KB
ID:	54162
Name:  Unbenannt2.png
Views: 314
Size:  2.1 KB

I thought I had seen such a script around but couldn´t find it anymore. Can anyone of you help me?
__________________
MEEP!
Reply With Quote