78

My try at the fractal tree :) This sort of simple graphical code is very quickly satisfying, gonna try to add some wind next

Comments
  • 11
    Higher res for those who care
  • 2
  • 4
    Beautiful
  • 2
    How would one do this if they wanted to try it?
  • 1
    It's beautiful...
  • 1
    Nice,but those lines of code ain't cleae
  • 1
    What language and what are you using to code?? Looks interesting
  • 3
    @odd13 the language is Processing, a Java based language
  • 2
    @oscarascal if you like Processing, you should have a look at p5js.org, a JavaScript library.
  • 1
    What is this application man?
  • 2
    @moses Clear? Clean? I have to admit that the code ain't that clean, I should document on how to organize processing code and good practices, but it's mainly just for my entertainment
  • 1
    @Shmanio does it feature good performance? I've seen from processing that it sometimes suffer when having loads of elements to draw
  • 1
    @oscarascal actually I don't know... I think it's related to the power of your computer and the browser you are using. Imo it's as fast as JavaScript, but easier to write
  • 1
    @Shmanio at least good IDEs exist for javascript, processing has such a bad editor ^^
  • 1
    @oscarascal never tried it, only saw some videos. It seems... minimal
  • 1
    @Shmanio I agree, but it has some complex features too. I think there are 3D objects and transforms possible, but I've never seen a real life use for it
  • 3
    You're like the Bob Ross of the code
  • 1
    Make it 3D :)
  • 4
    @AlgoRythm lemme read a little about opengl first, I'll post results in 8 months
  • 4
    @oscarascal I forget how processing 3D mode works but last time I tried it it was fairly simple, no fucking around with triangles and shaders like in gl, just simple objects and very few methods to memorize. Never got into raycasting or anything of that sort though.
  • 2
    What if i care high resolution code? 😁
  • 1
    @l3lackcurtains I changed some bits since, but here's the class where the magic happens, the rest is just a matter of making a new Sprout and call it's drawTree and drawLeaf
Add Comment