Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 788 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 788 Bytes

CI Document Satyrographos Package Index


SATySFi-XPath

SATySFi-XPathは高度なパス操作を実現するライブラリです。

Install

$ opam install satysfi-xpath
$ satyrographos install

Example

XPath.(
    start-path (0cm, 0cm)
        |> bezier-to (0cm, 1.1cm) (-2cm, 1.1cm) (-2cm, 0cm)
        |> line-to (0cm, -2cm) |> line-to (2cm, 0cm)
        |> close-with-bezier (2cm, 1.1cm) (0cm, 1.1cm)
        |> stroke 3pt (Color.red)
)

Output