Board index » delphi » Done it ! One of the biggest maze ever
Olivier Pons
![]() Delphi Developer |
Done it ! One of the biggest maze ever2007-09-27 10:18:46 PM delphi75 Just download them and be aware : you need a *lot* of RAM to be able to display them. How did I do that ? - first I have implemented a very simple maze creation algorithm (thanks Delphi) ; - second I wasn't happy with that so I took a deeper look at Photoshop and its JavaScript capabilities. - I generated a big JavaScript file but I couldn't execute it because, even with 4Gb RAM, it didn't have enough memory to load a 25 Mb JavaScript file. - so I created a simple JavaScript that opened another js file, read line by line and did a : f = new File(repRef+"m/04.dat") f.open("r"); while (!f.eof) { s=f.readln(); eval(s); } f.close(); - then generated a huge maze. - that wasn't enough for me. So, thanks to Graphics32, I have downloaded a small graphic file, and for each pixel I evaluated the color strength, I did a circle according to the strength, then with the huge grid of circles, I created my Javascript file. - I have reached the PS limit and I have not been able to find someone who did that (I you hear about that let me know) : you are limited to 1000 anchor points by path. So I had to split my JavaScript to be able to draw that. Took between half an hour and 45 minutes to draw each maze. Enjoy :) olivier.pons.free.fr/im/laby01.jpg olivier.pons.free.fr/im/laby02.jpg olivier.pons.free.fr/im/laby03.jpg olivier.pons.free.fr/im/laby04.jpg |