{"id":17163011,"url":"https://github.com/amnuts/evolisajs","last_synced_at":"2026-05-17T11:33:32.437Z","repository":{"id":67393204,"uuid":"182447855","full_name":"amnuts/EvoLisaJS","owner":"amnuts","description":"A genetic algorithm to try to re-create the Mona Lisa (adaptation of EvoLisa using Javascript)","archived":false,"fork":false,"pushed_at":"2023-08-16T18:27:34.000Z","size":710,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-01T21:31:52.577Z","etag":null,"topics":["bezier-curves","canvas","genetic-algorithm","javascript","mona-lisa","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/amnuts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-20T19:44:01.000Z","updated_at":"2023-08-16T18:27:39.000Z","dependencies_parsed_at":"2024-12-02T18:03:43.627Z","dependency_job_id":null,"html_url":"https://github.com/amnuts/EvoLisaJS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amnuts/EvoLisaJS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnuts%2FEvoLisaJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnuts%2FEvoLisaJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnuts%2FEvoLisaJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnuts%2FEvoLisaJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amnuts","download_url":"https://codeload.github.com/amnuts/EvoLisaJS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnuts%2FEvoLisaJS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33136762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bezier-curves","canvas","genetic-algorithm","javascript","mona-lisa","typescript"],"created_at":"2024-10-14T22:47:31.220Z","updated_at":"2026-05-17T11:33:32.422Z","avatar_url":"https://github.com/amnuts.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EvoLisaJS\n\nA swing at creating EvoLisa using Javascript.\n\nEvoLisa is a program by Roger Johansson that uses genertic algorithms to recreate an image of the Mona Lisa using just polygons.  The original .Net code can be found at https://rogerjohansson.blog/2008/12/07/genetic-programming-evolution-of-mona-lisa/\n\nThis version of it uses TypeScript and does things in a way that may only be compatible with the latest browsers.  It was tested on the latest Chrome and Firefox and worked just fine.  Your mileage may vary depending on what browser you use.\n\nIf you want to change the image, update the `data-img` attribute on the canvas tag in `index.html`.\n\n## Example output\n\nAfter running for quite some time:\n\n![Example output](example.png)\n\n## Get up and running\n\nThe main code is written using [TypeScript](https://www.typescriptlang.org/), so you'll need to compile the source code in order to use it as plain javascript.\n\nIf you haven't already, install TypeScript using _npm_ with the command:\n\n```\nnpm install -g typescript\n```\n\nThis will globally install the required TypeScript tools.  You can then run the command:\n\n```\ntsc\n```\n\nto compile the TypeScript files into the _dist_ directory where they will be ready for use by the browser.  Then open up the _index.html_ file in your browser.  If you get CORS errors then you may find you need to start a small web server in order to run the _index.html_.  I have PHP installed, so do `php -S localhost:8080 -t .` from the repo root and then go to `http://localhost:8080/` in my browser.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famnuts%2Fevolisajs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famnuts%2Fevolisajs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famnuts%2Fevolisajs/lists"}