Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Orni10316yWow that looks sick. I assume there are tutorials to do this online, but I kinda want to do this now.
-
@ewpratten i will make a wallpaper and pin it here. Have to continue with it later, will make one before i break the code 😂
-
Regarding tutorial. I researched into factorials and how fractal trees look. Concept was making a constructor that draws a line given two points (i chose center bottom and center bottom - 100px) and then finds the end point of the line and make 2 new instances passing the new starting point being the end of where the prev ended and rotating aroudn PI to get random degrees between about 40 -60 degress and then just make a method to render a certain ammount to canvas
In the end its very resource hungry so loads of fixing buuut i will re write it on its own using a library (need to research which will be best) and then post the code for you all to olay around with.
*some library names will be apreciated for canvas engines* -
This is a concept i want to finish this week. Rendef in a 3D space and then procedurally generate trees on a procedurally generated land (here i will research and look into Perlin noise by Ken perlin) to get a organic and natural looking plane made for games or just good visuals :)
-
@TrojanMorse for more ways to generate fractals check out iterated function system fractals :)
Also, this is pretty neat, nice. -
I'm a simple person.
I see a beautiful tree, I ++
Then I see the disgusting cesspit of JS, and I -- -
Keeping track of the branches becomes a hastle :( buuut nothing a whole weekend and no sleep cant fix (curls into a ball)
-
@ewpratten Wallpaper generated for you and for who ever wants, off to code and thanks for the positive feedback @all,
https://imgur.com/a/CT14nq3 -
devios157706y@Midnigh-shcode What cesspit? He's logging arrays of branches in the console. I don't even see any js.
-
@devios1
it's running in the browser.
logs into browser's console.
what else than the disgusting cesspit of JS can it be?
...it's not a comment about his code.
any JS code is a disgusting cesspit of JS. -
@Midnigh-shcode this was for debugging and its unfortunate it os rendered like this but essentially ill be using more native labgues to render this so then you can sleep easy while i dig a hole trying the above 😌 haha
-
Just a thought, but the lines are perfectly straight. Maybe a bit imperfection would look cool.
Anyway, really cool:) -
devios157706y@Midnigh-shcode That's ridiculous. You can write good code in any language. Judging code from the language it's written in is like judging a person by the language they speak.
-
@just8littleBit will be looking to get something im version control from tomorrow as i need to finish the port to the library but it will probably be on bitBucket, havent used github in a while.
Related Rants
-
dfox48Hey everyone, First off, a Merry Christmas to everyone who celebrates, happy holidays to everyone, and happy ...
-
cansik2This Fibonacci joke is as bad as the last two you heard combined.
-
v-vp15windows update code function update(){ print("10%"); print("30%"); print("50%"); print("99%")...
Update on this: https://devrant.com/rants/1641198/...
I was a little tired but made updated and currently getting a more natural looking tree.
random
personal projects
fibonacci
fractal tree
update
fractal geometry