package ocb
SVG badge generator
Install
Dune Dependency
Authors
Maintainers
Sources
0.2.tar.gz
sha256=ec2d476c8b90fe255049140035b249e0f4f34b51e554794950f11be701b28932
sha512=2a7f006d370f39dec76c92534332b846842014c98966b3e75a856ba91ed63a7165d23f3e3b3eb63548356fff35b5ef5b8f066910ab5b2d3f5ecc6afcf6b99e47
Description
An OCaml library for SVG badge generation. There's also a command-line tool provided.
Published: 07 Jul 2022
README
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
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.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page