# Banner
**Repository Path**: murmuring/Banner
## Basic Information
- **Project Name**: Banner
- **Description**: No description available
- **Primary Language**: Java
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2021-11-25
- **Last Updated**: 2021-11-25
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Nepxion Banner
 [](https://tokei.rs/b1/github/Nepxion/Banner?category=lines) [](https://github.com/Nepxion/Banner/blob/master/LICENSE) [](https://search.maven.org/artifact/com.nepxion/banner) [](http://www.javadoc.io/doc/com.nepxion/banner) [](https://travis-ci.org/Nepxion/banner) [](https://www.codacy.com/gh/Nepxion/Banner/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Nepxion/Banner&utm_campaign=Badge_Grade) [](https://github.com/Nepxion/Banner/stargazers) [](https://gitee.com/Nepxion/Banner/stargazers)
Nepxion Banner是一款基于Taobao Text的旗标生成器
## 依赖
```xml
com.nepxion
banner
${banner.version}
```
## 示例
通过此网站制作旗标的文本文件,手工在文本文件里处理成一个旗标元素占单行的格式
[http://patorjk.com/software/taag/#p=display&f=Soft&t=Nepxion](http://patorjk.com/software/taag/#p=display&f=Soft&t=Nepxion)
具体实现
```java
public class BannerTest {
public static void main(String[] args) {
LogoBanner logoBanner1 = new LogoBanner(BannerTest.class, "/com/nepxion/banner/resource/logo-halo-1.txt", "Welcome to Nepxion", 4, 7, new Color[] { Color.red, Color.yellow, Color.cyan, Color.magenta }, false);
System.out.println(logoBanner1.getBanner());
System.out.println(logoBanner1.getPlainBanner());
LogoBanner logoBanner2 = new LogoBanner(BannerTest.class, "/com/nepxion/banner/resource/logo-halo-2.txt", "Welcome to Nepxion", 4, 5, new Color[] { Color.red, Color.yellow, Color.cyan, Color.magenta }, false);
System.out.println(logoBanner2.getBanner());
System.out.println(logoBanner2.getPlainBanner());
LogoBanner logoBanner3 = new LogoBanner(BannerTest.class, "/com/nepxion/banner/resource/logo-arthas.txt", "Welcome to Nepxion", 6, 5, new Color[] { Color.red, Color.yellow, Color.cyan, Color.magenta, Color.green, Color.blue }, true);
System.out.println(logoBanner3.getBanner());
System.out.println(logoBanner3.getPlainBanner());
VersionBanner versionBanner = new VersionBanner(BannerTest.class, "/com/nepxion/banner/resource/version.txt", "Unknown Version");
List descriptions = new ArrayList();
descriptions.add(new Description("Version:", versionBanner.getBanner(), 0, 10));
descriptions.add(new Description("Site:", "http://www.nepxion.com", 0, 10));
descriptions.add(new Description("Github:", "https://github.com/Nepxion/", 0, 10));
descriptions.add(new Description("Blog:", "https://nepxion.iteye.com/", 0, 10));
DescriptionBanner descriptionBanner = new DescriptionBanner();
System.out.println(descriptionBanner.getBanner(descriptions));
try {
System.in.read();
} catch (IOException e) {
e.printStackTrace();
}
}
}
```
运行结果

## 请联系我
微信、钉钉、公众号和文档

## Star走势图
[](https://starchart.cc/Nepxion/Banner)