Luxor is a Julia package for drawing simple static vector graphics. It provides basic drawing functions and utilities for working with shapes, polygons, clipping masks, PNG and SVG images, turtle graphics, and simple animations.
The focus of Luxor is on simplicity and ease of use: it should be easier to use than plain Cairo.jl, with shorter names, fewer underscores, default contexts, and simplified functions.
Luxor is thoroughly procedural and static: your code issues a sequence of simple graphics 'commands' until you've completed a drawing, then the results are saved into a PDF, PNG, SVG, or EPS file.
Install the package using the package manager:
] add Luxor
Cairo.jl and Colors.jl will be installed if necessary.
To use Luxor, type:
julia> @svg juliacircles()
julia> @png juliacircles()
which should create a graphic file and possibly also display and/or open it, depending on your environment.
This documentation was built using Documenter.jl.
Documentation built 2021-08-20T15:04:42.603 with Julia 1.6.2