Social Networks


Follow sproutworks on Twitter
Enter your Email


Powered by FeedBlitz

RSS Feed

Links

Blogshares Links

The BlogShares fantasy blog stock market.

BlogShares Price Tracker
I wrote this program to archive information from the BlogShares fantasy stock market. You can view graphs of any industry, and analyze your portfolio.

SproutWorks Projects

Digg Archive
A new experimental Digg page.
AJAX Pixel Editor
A Collaborative pixel editor currently in development.
Web promotion links
These tools help you get visitors on your website.
SproutPics
My photography Site
SproutSearch
I designed this blog indexing tool, and it has accumulated over 6 million blogs so far.
Products
Some of the programs I've written.
SproutTree Demo
A demo of a tree-drawing PHP script.
My Gallery

Sign In

Username:
Password:
Remember Me

sprout man
Forums/SproutWorks Products/SproutChat

sproutworks
August 8th, 2005 4:40 AM PST
I have made a demo page for the PHP tree script I made a while ago. I modified it so that it includes something you type in the field inside the image. I chose just about the simplest way to incorporate random text, but it looks kind of neat.

Make your own tree at
http://www.sproutworks.com/treedemo.php

For those interested in how this works, the basic of this program is a function that draws a branch, given the color of the branch, and it's starting coordinates. The branch is drawn by chooing random directions in which to grow the branch. Randomly, new branches are started.

The function does not run truely recursively. I was having problems with the level of recursion, so I simulated a stack with a simple array of coordinates, and called the branch function in a loop.

I found this to be an interesting program to write, and there are many ways to expand this program. It would fit well with hierarchical structures, such as sitemaps, or directories. I also have an idea for an image that represents the growth of a blog.

Select Image File:
You may upload a gif, jpeg, or png image to attach to your message. (optional)

Title:
Tags:
Links (including the http://) will be formatted into a clickable link.

Turing ImageType the letters you see in the image to the left.