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

https://github.com/frozar/roughcljs

Clojurescript wrapper around roughjs library
https://github.com/frozar/roughcljs

Last synced: 6 months ago
JSON representation

Clojurescript wrapper around roughjs library

Awesome Lists containing this project

README

          

![roughcljs-logo](https://github.com/frozar/roughcljs/blob/master/logo_roughcljs.svg "RoughCLJS logo")

[![Clojars Project](https://img.shields.io/clojars/v/frozar/roughcljs.svg)](https://clojars.org/frozar/roughcljs)
[![CircleCI](https://circleci.com/gh/frozar/roughcljs/tree/master.svg?style=shield)](https://circleci.com/gh/frozar/roughcljs/tree/master)

`RoughCLJS` is a wrapper around the nice drawing library `RoughJS`:
https://roughjs.com/

The purpose is to provide a simple clojurescript interface to get shape
generated by `RoughJS` without messing around JS object, data structure,
method, field, integration, etc.

`RoughCLJS` wrap only the svg part of the `RoughJS` library.

This project has been generated by:

```shell
npx create-cljs-project roughcljs
```

## Test

Thes tests are launched through Karma. To compile and launch them:
```shell
npm i -g karma-cli
shadow-cljs watch ci && karma start
```

## Publish the lib on clojar

To generate the clojars package:
```shell
lein jar
lein deploy clojars
```

## Documentation

The author of [RoughJS](https://roughjs.com/) has published a fairly complete
explanation of the algorithms used in this library:
https://shihn.ca/posts/2020/roughjs-algorithms/