Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
davidim
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
davidim
8y ago
What sort of drawing are you thinking? Dragging the mouse around on the screen or navigating with the arrows?
2.
▲
by
davidim
8y ago
Thanks a lot for the bug report! You're right - I was forgetting to clear the canvas on render. So I added ctx.clearRect(0, 0, WIDTH, HEIGHT); to the start of the render method.
3.
▲
by
davidim
8y ago
Recursive division may be elegant, but it seems that may also have its disadvantages.
4.
▲
by
davidim
8y ago
Thanks so much for the compliment. This is probably a bi-product of the maze generation algorithm I used. Essentially, at every step, the algorithm bisects the maze horizontally or vertically - then, it chooses a random cell along this bise
5.
▲
by
davidim
8y ago
Thanks for checking it out! I am wondering how big is the number you are putting in? If the number is really high, it's probably causing a stack overflow. I would limit the size, but each browser has its own recursion limits so that w
6.
▲
Show HN: Solve and generate mazes with JavaScript on HTML Canvas
(github.com)
96 points
by
davidim
8y ago
|
30 comments
7.
▲
by
davidim
8y ago
Thanks for checking it out. I like the idea of making the hand move between seconds - I was actually thinking about doing something like that when originally making the clock - then I got too lazy and told myself that real clocks don’t do t
8.
▲
Show HN: An analog clock on html canvas
(dmaydan.github.io)
6 points
by
davidim
8y ago
|
3 comments