This repository has been archived by the owner on May 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement basic functionalities
- Loading branch information
1 parent
092c391
commit 698218e
Showing
36 changed files
with
4,428 additions
and
2,955 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,23 @@ | ||
# mirage-tank-images | ||
# mirage-tank-images | ||
[![GitHub top language](https://img.shields.io/github/languages/top/Samarium150/mirage-tank-images?style=flat)](https://v3.vuejs.org/) | ||
[![deploy](https://github.com/Samarium150/mirage-tank-images/actions/workflows/deploy.yml/badge.svg)](https://github.com/Samarium150/mirage-tank-images/actions/workflows/deploy.yml) | ||
[![LICENSE](https://img.shields.io/github/license/Samarium150/mirage-tank-images?style=flat)](https://github.com/Samarium150/mirage-tank-images/blob/master/LICENSE) | ||
|
||
## 简介 | ||
|
||
这是一个纯前端的“幻影坦克”图片生成器,部署在[GitHub pages](https://samarium150.github.io/mirage-tank-images/) | ||
|
||
本项目最初的目的仅仅是学习Vue,所以生成图片的效率非常感人,如果真的要实际使用,这里更推荐[Python](src/lib/python/mirage_tank.py)的源码 | ||
|
||
## 背景知识 | ||
|
||
聊天软件或网站总是以白色背景和黑色背景(夜间模式)显示图片,在默认的白色背景下看到一张图(图A),但是点击放大却变成另一张图(图B)。 | ||
|
||
这是因为查看详情使用的背景是黑色背景。如下图所示,看到的图片分别为天音かなた和妖精騎士トリスタン | ||
|
||
<a href="https://www.pixiv.net/artworks/90446978" taget="_blank"><img src="src/assets/sample.png" alt="sample_white" style="width: 30%; background-color: white" align="left"></a> | ||
<a href="https://www.pixiv.net/artworks/90487779" taget="_blank"><img src="src/assets/sample.png" alt="sample_black" style="width: 30%; background-color: black" align="right"></a> | ||
<br> | ||
|
||
但实际上原图均为[sample.png](src/assets/sample.png),区别仅仅是背景分别为白色和黑色。 | ||
这样的图片又被网友戏称为“幻影坦克”。利用这样的特性可以将表情包作为上层,其他图片作为下层,在不同的颜色背景下显示来达到伪装和隐藏下层图片的目的。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vite App</title> | ||
</head> | ||
<body> | ||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" sizes="48x48" href="/favicon.ico" /> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> | ||
<link rel="manifest" href="/site.webmanifest"> | ||
<title>'幻影坦克'图片生成器</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
</body> | ||
</body> | ||
</html> |
Oops, something went wrong.