Skip to content

Ocaml port of drawille library (Braille chars canvas)

Notifications You must be signed in to change notification settings

ksromanov/drawille

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A port of asciimoo's drawille to OCaml

Drawille is a tiny library for drawing in terminal with Unicode Braille characters. Current implementation supports only UTF-8 encoding. It is not hard to add UTF-16 encoding, however drawing with Braille characters is historically used on Mac/Linux only.

Quick start

Create canvas using either empty or fromList, set some pixels with set and render UTF-8 encoded with frame:

let canvas = fromList [(0,2); (2,3); (3,0)] in
set canvas (0,0);
frame canvas

(0, 0) pixel is in the top-left corner.

About

Ocaml port of drawille library (Braille chars canvas)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published