All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Add support to draw border.
- Remove stroke from
point
andpixel
drawing APIs. - Allow override one corner radius while drawing a rectangle.
- Disallow setting
width
andheight
after initialization. - Added FormattedString and text API
- Moved resolution settings to
saveAs
function. - Change default measurements to
point(pt)
. - Added support for
100.px
,10.pt
while specifying the co-ordinates, size etc. - Added support for rendering PNG images (
image(PATH, x, y)
). - Added functions to get image dimentions,
imageWidth(PATH)
,imageHeight(PATH)
andimageSize(PATH)
.imageSize
returns thestruct{double width, double height}
.
v0.1.1 - 2024-12-04
- Fixed the issue with different resolution settings. Changed the base resolution to
72
and default resolution to300
. All the measurements and co-ordinates to provided resolution. noStroke
was ignored and the generated images contains the stroke. With this release, fixed the issue withnoStroke
.- Added a few examples.
v0.1.0 - 2024-12-01
- Added support for
10.mm
,1.cm
,2.inch
while specifying the co-ordinates, size etc. - Added support for canvas size and resolution configuration while creating the Chitra instance.
- Added support for basic shapes:
rect
,point
,square
,oval
,circle
,pixel
,line
,polygon
etc. - Added support for rounded rectangle.
- Added Fill and Stroke color configurations (RGBA, Hex, color names).
noFill
andnoStroke
added.- Added documentation.
- Added support for background color.
- New page and new drawing APIs supported.
- Transformations added:
rotate
,translate
andscale
. - Support added tp export to
pdf
,svg
andpng
formats. - Published the project to https://code.dlang.org/packages/chitra