1
Freebasic / Re: L-system interpreter
« on: November 14, 2009 »
Here's a new version, with the ability to load and save rule sets (and a very simplistic text interface)
When I try to run the plant.rl, it crashes if I try to do more than 2 iterations
*edit*
fixed that
Now I just need some help with ratios. In my code, the get_curve_size sub is used to calculate the min and max coords of the finished image, then it uses the window command to reset the coordinate system to a box just slightly larger than that, but this method is causing distortion in the image. I need a formula to re-calculate the min and max coords for the virtual coordinate system while keeping it to the actual ratio of the graphics window.
When I try to run the plant.rl, it crashes if I try to do more than 2 iterations
*edit*
fixed that
Now I just need some help with ratios. In my code, the get_curve_size sub is used to calculate the min and max coords of the finished image, then it uses the window command to reset the coordinate system to a box just slightly larger than that, but this method is causing distortion in the image. I need a formula to re-calculate the min and max coords for the virtual coordinate system while keeping it to the actual ratio of the graphics window.