Reply to Re: line drawing?

Your name:

Reply:


Posted by David Gillen on 11/24/06 14:57

An noise sounding like marko said:
> Hi everyone,
> I'm looking for a way to draw a line that will zig-zag its way thru an
> image randomly, crisscrossing itself many times, based on random numbers
> _and_ php.
>
> To give you an idea of what I'd like to do, here's a link to a gif :
> http://www.chaosmos.net/chaosmoseng/chaosmos7.htm
>
> I've spent a lot of time googling about how to draw that kind of line
> with php but I only came across how to draw texts, charts and pies.
>
> Is there a way to do that or am I barking up the wrong tree?
>
> Thanks for your answers
>
Use gd to draw the lines
start point = randx randy
for(1 - how many lines)
{
end point = randx randy
draw line from start point to end point
start point = end point
next loop
}

D.
--

/(bb|[^b]{2})/
Trees with square roots don't have very natural logs.
What's the difference between ignorance and apathy? Who knows? Who cares?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация