KarthikNedunchezhiyan/Image-Mimic-Genetic-Algorithm

can you give me documentation of it's coding

waqaramjad opened this issue · 1 comments

can you give me documentation of it's coding because there is a confusion in many things

  1. how this randomly image formed ?
  2. i checked the code you did not use import any where like to link the file so how this file connected to main.js ?
  3. why there is an error when we refresh the page of "max call exceed " ?

it's really good you could explain that things
thanks in advance

Hi @waqaramjad sorry for the delayed response.

  1. how this randomly image formed ?

Here I am using a sandpile algorithm to construct random images. Implementation is in imageGenerator.js

  1. i checked the code you did not use import any where like to link the file so how this file connected to main.js ?

It is linked on index.html

  1. why there is an error when we refresh the page of "max call exceed " ?

This happens due to high recursion calls while creating random image. This will mostly happen in mobile browsers as their call stack limit will be less than desktop. To avoid this you could adjust image size as recursion call is proportional to image size or you could rewrite the recursion logic in imageGenerator.js

Happy Coding!