Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/poeschl/kixelflut

A Pixelflut wrapper for Kotlin and Java
https://github.com/poeschl/kixelflut

java kotlin pixelflut

Last synced: about 8 hours ago
JSON representation

A Pixelflut wrapper for Kotlin and Java

Awesome Lists containing this project

README

        

# Kixelflut [![Push tests](https://img.shields.io/github/actions/workflow/status/Poeschl/Kixelflut/master-check.yaml?branch=master)](https://github.com/Poeschl/Kixelflut/actions)

A [Pixelflut](https://github.com/defnull/pixelflut) interface for Java and Kotlin written in Kotlin.

## Installation

[![Latest version](https://img.shields.io/maven-central/v/xyz.poeschl/Kixelflut)](https://search.maven.org/artifact/xyz.poeschl/Kixelflut)

Kixelflut is available via Maven Central, so copy one of the snippets below into your maven or gradle project and it will be installed.

```groovy

dependencies {
implementation 'xyz.poeschl:Kixelflut:{version}'
}

```

To use it in a maven project add this in the pom.xml:

```xml

...


xyz.poeschl
Kixelflut
{version}
pom

```

## Usage

The Pixelflut interface is located in the `Pixelflut` class. There are the basic commands of the protocol.

Additional utils for drawing lines or areas can be found in `DrawUtils`.

To get yourself going fast the `Painter` class is a nice way to inherit.
For examples take a look at the [Mazedrawer classes](https://github.com/Poeschl/PixelMaze/blob/master/src/main/kotlin/io/github/poeschl/pixelflutmaze/labyrinth/LabyrinthDrawer.kt).

The interface uses KotlinLogging for logging output and will put it to any slf4j logger available.