Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pikeszfish/GA_engine
遗传算法实现多个三角形拟合图片
https://github.com/pikeszfish/GA_engine
Last synced: 3 months ago
JSON representation
遗传算法实现多个三角形拟合图片
- Host: GitHub
- URL: https://github.com/pikeszfish/GA_engine
- Owner: pikeszfish
- License: mit
- Created: 2014-12-12T02:43:06.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-02-24T02:33:33.000Z (over 6 years ago)
- Last Synced: 2024-07-16T14:07:03.128Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 748 KB
- Stars: 52
- Watchers: 5
- Forks: 22
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## GA_engine
=========
写了个在线的版本,js写的
[GA_engine在线版](pikeszfish.me/GA/)
目前canvas的大小是256 *256,所以三角形的点的横纵坐标范围是[0, 255]
颜色使用的rgba(RGB + alpha),html中的alpha范围为0-1,rgb的范围是[0, 255]一个采用遗传算法利用多个三角形拟合图片的工具
像这样![Chrome](https://raw.githubusercontent.com/pikeszfish/GA_engine/master/chrome.png)
![Chrome after 4000000](https://raw.githubusercontent.com/pikeszfish/GA_engine/master/chrome_100_1_4000000.png)### Usage
usage: GAengine [-h] [-t TARGET] [-o FOLDER] [-n TRIANGLE_NUM] [-l LOOP] [-p RESULT_NAME]