This repository is part of the project Algorithm Visualizer.
tracers.java
is a visualization library for Java.
You can use it on algorithm-visualizer.org or locally on your machine.
-
Add the JitPack repository to
build.gradle
.allprojects { repositories { jcenter() maven { url "https://jitpack.io" } } }
-
Add the dependency.
dependencies { implementation 'org.algorithm-visualizer:tracers.java:+' }
-
Add the JitPack repository to
pom.xml
.<repositories> <repository> <id>jitpack.io</id> <url>https://jitpack.io</url> </repository> </repositories>
-
Add the dependency.
<dependency> <groupId>org.algorithm-visualizer</groupId> <artifactId>tracers.java</artifactId> <version>[1.0.0,)</version> </dependency>
import org.algorithm_visualizer.*;
class Main {
public static void main(String[] args) {
LogTracer logTracer = new LogTracer("Scratch Paper");
logTracer.print("Visualize your own algorithm here!");
}
}
Check out the API reference for more information.
Check out the contributing guidelines.