Skip to content

A simple, self-contained Java library for parsing and writing Stipple Effect projects from/to file and to/from an intermediate representation

Notifications You must be signed in to change notification settings

stipple-effect/stip-parser

Repository files navigation

STIP Parser

The code for serializing and deserializing Stipple Effect project files and palette files is maintained here, in its own repo, and included in Stipple Effect as a dependency. This way, other programs can easily import stip-parser and save image data as a Stipple Effect project without being dependent on the entire Stipple Effect codebase.

Using STIP Parser

Saving a Stipple Effect project to file

import com.jordanbunke.stip_parser.ParserSerializer;
// ...

// 'state' is an IRState, 'filepath' is a Path
ParserSerializer.save(state, filepath);

Loading a .stip file

import com.jordanbunke.stip_parser.ParserSerializer;
import com.jordanbunke.stip_parser.rep.IRState;
// ...

// 'content' is a String representing the contents of a .stip file
IRState state = ParserSerializer.load(content);

Intermediate representation classes

STIP Parser uses intermediate representation classes to represent Stipple Effect data types:

Dependents

The following programs rely on STIP Parser, and must import the library in order to be built from source:

You can download the library as a JAR by going to Releases. Unless otherwise specified by the release notes or the README of the program you are attempting to build, the latest release is likely what you are looking for.

About

A simple, self-contained Java library for parsing and writing Stipple Effect projects from/to file and to/from an intermediate representation

Resources

Stars

Watchers

Forks

Languages