![]() |
What he needs to do is get the angle of the line, then draw the points half of thickness 90 degree's out to each side.
|
Quote:
It seems superfluous to me to use the with-findimg construct for (essentially) static images. |
Quote:
well, getangle(xy1[0]-xy2[0], xy1[1]-xy2[1]); would do that, but, I haven't got to work on this little function as much, because I've been busy with other stuff :( |
showimg() being GS1? Try to use findimg() serverside.
|
findimg() is listed in the serverside script functions.
I always use findimg() now because I don't want to alternate between two days of doing the same thing. findimg() works for the simple and the complex and is much more readable. Quote:
So theres now 3 ways to do the same thing: PHP Code:
|
Quote:
GS1 is PHP Code:
PHP Code:
PHP Code:
|
Quote:
|
Invern is right, showImg(); was made just for compatibility with showimg; GS2 is technically not related to GS1. You should use findImg, it is more object oriented than showImg;
|
Quote:
|
Quote:
|
Quote:
|
Quote:
Quote:
But showimg involves no lookup. |
Quote:
|
I seem to recall showtext working clientside only back in the GS1 days.
Quote:
And how do you mean that showimg() involves no lookup? |
showimg is a fine function. I personally do something like
this.whatevz = showimg(whatevz); then generally reference the variable when i want to change anything this.whatevz.red = rad; |
All times are GMT +2. The time now is 08:27 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.