77

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

Comments
  • 10
    Higher res for those who care
  • 1
  • 3
    Beautiful
  • 1
    How would one do this if they wanted to try it?
  • 0
    It's beautiful...
  • 0
    Nice,but those lines of code ain't cleae
  • 0
    What language and what are you using to code?? Looks interesting
  • 2
    @odd13 the language is Processing, a Java based language
  • 1
    @oscarascal if you like Processing, you should have a look at p5js.org, a JavaScript library.
  • 1
    @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
  • 0
    @Shmanio does it feature good performance? I've seen from processing that it sometimes suffer when having loads of elements to draw
  • 0
    @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
  • 0
    @Shmanio at least good IDEs exist for javascript, processing has such a bad editor ^^
  • 0
    @oscarascal never tried it, only saw some videos. It seems... minimal
  • 0
    @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
  • 2
    You're like the Bob Ross of the code
  • 0
    Make it 3D :)
  • 3
    @AlgoRythm lemme read a little about opengl first, I'll post results in 8 months
  • 3
    @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.
  • 1
    What if i care high resolution code? 😁
  • 0
    @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