So, I hava a programming assignment which is a lesson in recursion. Not to hard. We're going to use it to make fractals. This I can dig. It takes me a little while, but I finally design a fractal that shouldn't be too hard to program with Java.
Turns out to be a Sierpinski Triangle, but oh well. Mine grows downward instead of up, so I feel so small satisfaction in it.
I get my program to draw a triangle. I then get it to draw a triangle starting at the midpoint for each side. I then get it to repeat with the smaller triangles. Hooray!
Then I implement a sliding bar so you can determine at what iteration you would like to view my fractal. (It only goes up to 9, because anything higher would be impossible to see and use up to much computing power.)
I even found a way to keep it from drawing over itself and making a mess. Since I wasn't using the Paint object, it had to come up with it on my own.
So I'm feeling pretty proud of myself (even though I know it can be done more effictively than what I have done by people younger and smarter than myself...... stare )
Then I realize that I have to create a c-curve with my program. Oookay........ So I decided to use the turtle method to do this. Should make it simple. Just tell the turtle to draw a line, turn, and draw another one, right? Then I can add radio buttons so people can select wich fractal they want to play with. Sounds like fun.
Until it hits me. I don't know how to draw a c-curve. And the assignment doesn't tell me. And the people of Gaia just keep telling me to google it. Which I already did and it wasn't helpful either. stressed Just pictures of the stupid fractal, or how to apply it. Not what the equation for creating one is.
GRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR
So....C-curves are stupid.
View User's Journal
Celeste's Life
Things going on that concern me, or short stories that I come up with and have no where else to put them.
[img:37fd4649d9]http://i495.photobucket.com/albums/rr319/BardG/Jump.gif[/img:37fd4649d9] [/align:37fd4649d9]