imgToAscii实现图片转Ascii码效果代码

代码语言:html

所属分类:其他

代码描述:imgToAscii实现图片转Ascii码效果代码

代码标签: imgToAscii 图片 Ascii

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />

</head>
<body>
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/imgToAscii.js"></script>
   

	<div> Some text </div>
	<script>
		let eu = new imgToAscii('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABdCAYAAABTl8MxAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4goDEzgOIRorswAAIABJREFUeNrtnXlcVPX+/5/nnNmYGWbYBEFWERAQNZe43hK3NE0tvemtzLxq33a/rd60+7Ny6XZdbpb1LbVbXbPbYpaVWZlWliuae4KggAoKsjMMMzAz58z8/hhAETAgK+32fjx8qHDWz+vz3pcjeDweD5cZKYpCTU0NFRUVlJSUUFVVRW5uLtnZ2eTl5VFYWEhpaSkWiwWHw4HT6UQURTQaDXq9nqCgIDp16kRkZCTR0dEkJyfTuXNnAgMDCQoKws/PD4PBwOVIwuUEyIkTJ1i5ciX79+/n+PHjWCwWrFYrsizja/Kjc1g4QZ1C8A8MxGAwodVqEUUJQRTweDx4PB5kWaau1o7VYqGivISyshIKTubi8Xjw8fHBaDQSHBxMfHw8Q4cOZdq0aZcVOL86IGVlZezYsYPZs2eTlZWFWqPBbPbHPyCIlN796dGrD127dUdRFGRFxuP24PG46wEAuODxBQEBAUEQEEURBAGtRkNdXR1Hjxzgh0P7yMnOxFJVQU1NNYosM378eJ544gm6d++Or6/vfycgRUVF/PWvf2XTpk2UlpaS3LMPffr/kfiknvgaTWh1Png8HtweNx63+5LcUxRFRFHC7Vaoq6ulrKSYrIyD7Nq+hbOFBYSHhzN16lQWLFjw3wOIzWZj4cKFPPPMM/joDSQk9uTWKXdj9vPHAyiy/IsugEqlRhQF8nKy+fC9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Hp9UNt3TpUpYuXco1g4aT1OOqdgUYVSoVZaVnEUURWZbpCIMIgkjBqTzqau0MHjzYq0PMZjPffrWhMS7UXvknCAKKy9UhpWY2+/PgrHnYa+tITk5m/vz53qzkBWS1WnnmmWdISEigutrKI7OfISAo+ALfxs7IsRO4buQ4lixZQo8ePfj2229bvHd6ejp9+vThscceI23oSO64c0abowznDIwaHHV19U6ig47kzwQBcusLvJOTk1F17tyZ0NBQvt+1jetGjusQIKIkYbPb6MgWcbvddAmP5umFr/Dph2/z9NNPs2D+fHqk9KBbtzhEUeT4sWP88MMPyIrCH9Ou48abb8fsF9BiVNntdjPx9juJS0jiwzWrGDJkCEFBgVx1VR86dQqisrKKgwcPUlRUREBgMHfcOYMBacPaXTkiCAIVZSWN91SpNReN9l7s/Q8f2ENERATR0dGojEYj/fr1Y926j7BWWzAYje2ShSq1GpVaTUVZSRMvv715ar3ewC1T7uHPd9zFZx+vIePgXk4Xbq8XWTqGjRzH6PG3IopifaeU6yJOp4Oknn3o1TeVvJxsPvt4DYePZCLLLqT6xNH4W+8kpVc/ZEVGkZUOLWR1tQWP240iyxgNvh1KMdttNk7nn+TPE29Gp9N5M4YzZszgP//5D8eO/kDf1IFtzgk0yGitRkdFeVmHdsgFJgsCAhNvm87ESdOpq7Xj8YCPXg8I1Npt7Xppp9NJdGw8M+f8g7q6WlxOJyqVGp2PDw5HHfJPqKeSXS7qau3IsozT5cTXbG43IN6cSi7Vlkpmz559Lh+SmppKQkIC2779ElES231Rk58/jrpanJeoYKy21k6t3d4ok2vtdmrttg7IZwFFlqmxViO7XPVesYytxvqTwBBFkfKKUm+bnSzjVhQ6BXduNyAmsz9vvfESAwcOJDY29hwgACtXruR4VgbHszK8xQxttjTU+PkHYLNZcdYruJ+bRFFErzdQVlrM0SMHObgvnaNHDlJafBadjw8qtfrnu7kg4HK5.........完整代码请登录后点击上方下载按钮下载查看

网友评论0