Skip to content
/ ocb Public

ocb (OCaml Badgen) is an OCaml library for SVG badge generation. There's also a command-line tool provided.

License

Notifications You must be signed in to change notification settings

OCamlPro/ocb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ocb

ocb (OCaml Badgen) is an OCaml library for SVG badge generation. There's also a command-line tool provided.

Quick start

Using the command-line tool

ocb --label Hello --color green --style flat --labelcolor white --status Goodbye > out.svg && xdg-open out.svg

Gives the following result: cli example.

Using the library

let () =
  let open Ocb in
  Gen.mk Format.std_formatter ~label:"Hello" ~color:Color.Blue ~style:Style.Flat ~label_color:Color.White ~status:"Goodbye" ()

Credits

This project is inspired by badgen.

About

ocb (OCaml Badgen) is an OCaml library for SVG badge generation. There's also a command-line tool provided.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •