|
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?
Navigation:
[Reply to this message]
|