lolcat4j

Rainbows and unicorns!

License

License

MIT
Categories

Categories

Net
GroupId

GroupId

com.github.jamesnetherton
ArtifactId

ArtifactId

lolcat4j
Last Version

Last Version

0.4.0
Release Date

Release Date

Type

Type

jar
Description

Description

lolcat4j
Rainbows and unicorns!
Project URL

Project URL

https://github.com/jamesnetherton/lolcat4j
Source Code Management

Source Code Management

https://github.com/jamesnetherton/lolcat4j

Download lolcat4j

How to add to project

<!-- 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"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.13

Project Modules

There are no modules declared in this project.

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

Versions

Version
0.4.0
0.3.0
0.2.0
0.1.0