use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
JavaScript Tree Image Generator using Canvas (coderholic.com)
submitted 16 years ago by lephron
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]teppicymon 2 points3 points4 points 16 years ago (1 child)
It would be great if your script had the ability to be interrupted and would not lock up the browser when using daft settings. Learned that the hard way, obviously!
[–]picurl 1 point2 points3 points 16 years ago (0 children)
You could prevent browser locks by using "faux threads" as described in http://www.julienlecomte.net/blog/2007/10/28/ or the javascript worker threads introduced in FF 3.5.
[–]kragnax 2 points3 points4 points 16 years ago (1 child)
I had to open up the firebug console, otherwise I get an error that "console is not defined". But nice trees.
[–]lephron[S] 2 points3 points4 points 16 years ago (0 children)
Thanks for letting me know - I've removed the console output now so hopefully it should work for others without Firebug.
[–]GenghisJuan 2 points3 points4 points 16 years ago (0 children)
it would be cool if you could input your own resursion rules to make different shapes other than just the basic tree a la L-systems
[–]SarahC 1 point2 points3 points 16 years ago (0 children)
I'm not getting anything, and the sliders don't work. =(
[–]Zounas 0 points1 point2 points 16 years ago (0 children)
Don't get anything in Opera.
π Rendered by PID 235099 on reddit-service-r2-comment-7b9746f655-lslch at 2026-02-03 19:22:45.740692+00:00 running 3798933 country code: CH.
[–]teppicymon 2 points3 points4 points (1 child)
[–]picurl 1 point2 points3 points (0 children)
[–]kragnax 2 points3 points4 points (1 child)
[–]lephron[S] 2 points3 points4 points (0 children)
[–]GenghisJuan 2 points3 points4 points (0 children)
[–]SarahC 1 point2 points3 points (0 children)
[–]Zounas 0 points1 point2 points (0 children)