lolcat4j

Rainbows and unicorns!

Лицензия

Лицензия

MIT
Категории

Категории

Сеть
Группа

Группа

com.github.jamesnetherton
Идентификатор

Идентификатор

lolcat4j
Последняя версия

Последняя версия

0.4.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

lolcat4j
Rainbows and unicorns!
Ссылка на сайт

Ссылка на сайт

https://github.com/jamesnetherton/lolcat4j
Система контроля версий

Система контроля версий

https://github.com/jamesnetherton/lolcat4j

Скачать lolcat4j

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.jamesnetherton/lolcat4j/ -->
<dependency>
    <groupId>com.github.jamesnetherton</groupId>
    <artifactId>lolcat4j</artifactId>
    <version>0.4.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.jamesnetherton/lolcat4j/
implementation 'com.github.jamesnetherton:lolcat4j:0.4.0'
// https://jarcasting.com/artifacts/com.github.jamesnetherton/lolcat4j/
implementation ("com.github.jamesnetherton:lolcat4j:0.4.0")
'com.github.jamesnetherton:lolcat4j:jar:0.4.0'
<dependency org="com.github.jamesnetherton" name="lolcat4j" rev="0.4.0">
  <artifact name="lolcat4j" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.jamesnetherton', module='lolcat4j', version='0.4.0')
)
libraryDependencies += "com.github.jamesnetherton" % "lolcat4j" % "0.4.0"
[com.github.jamesnetherton/lolcat4j "0.4.0"]

Зависимости

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.13

Модули Проекта

Данный проект не имеет модулей.

lolcat4j

Lolcat4j CI Build Maven Central license

Java port of the lolcat Ruby Gem.

Requires Java 7 or later.

Building with Maven

Clone this repository and run:

mvn clean package

Running

java -jar lolcat4j-0.4.0.jar [OPTION...] [FILE]...

Use in your application

Add the following Maven dependency to your pom.xml:

<dependency>
  <groupId>com.github.jamesnetherton</groupId>
  <artifactId>lolcat4j</artifactId>
  <version>0.4.0</version>
</dependency>

Then use the builder class:

Lol lol = Lol.builder()
    .seed(1)
    .frequency(3.0)
    .spread(3.0)
    .text("Hello World!")
    .file(new File("my-file.txt"))
    .build();
lol.cat();

For animation, add a call to animate():

Lol lol = Lol.builder()
    ...
    .animate();
lol.cat();

To use all of the default values:

Lol lol = Lol.builder();
lol.cat();

Options

Option Description Type Default Value
-a, --animate Enable psychedelics Boolean false
-d, --duration Animation duration Integer 12
-F, --freq Rainbow frequency Double 0.1
-h, --help Show usage message
-S, --seed Rainbow seed, 0 = random Integer 0
-s, --speed Animation speed Double 20.0
-p, --spread Rainbow spread Double 3.0
-v, --version Print version and exit

Версии библиотеки

Версия
0.4.0
0.3.0
0.2.0
0.1.0