Mailing List

Enter your Email


Powered by FeedBlitz

RSS Feed

Entrecard

Links

Blogshares Links

Beginner's Guide to BlogShares
A guide about the BlogShares fantasy blog stock market.
Scared Bunny
BlogShares Price Tracker
This program that archives information about 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
SproutZoo
My zoo photographs
Tag Cloud
A summary of tagged articles.
Found Photos
An automated page that thumbnails photos from another 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.
RSS Feeds
RSS Feeds from the SproutWorks Forums
SproutTree Demo
A demo of a tree-drawing PHP script.
My Gallery

SproutWorks Chat
A chat room I programmed, most likely empty.
Link Exchange - Link Directory - Web Hosting

Sign In

Username:
Password:
Remember Me

sprout man
Forums/

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.