chitra 0.6.1

2D graphics library using Cairo and Pango


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

Chitra - 2D graphics library - D programming language

<a href="https://chitra.aravindavk.in"><img src="static/chitra-logo.png" alt="CHITRA" width="300"/></a>

Hello Rectangle


import chitra;

void main()
{
    auto ctx = Chitra(700);
    with (ctx)
    {
        background(255);
        fill(0, 0, 255);
        rect(100, 100, 500, 200);
        saveAs("rect.png");
    }
}

Sponsors

<a href="https://kadalu.tech"><img src="static/kadalu-technologies-logo.svg" alt="Kadalu Technologies" width="200"/></a>

<a href="https://fossunited.org"><img src="static/FOSS United Logo Black.png" alt="FOSS United" width="200"/></a>

Documentation

Read the Docs https://github.com/aravindavk/chitra-d/wiki

Blog Posts

  • Generating 5mm dot pages using Chitra https://aravindavk.in/blog/5mm-dot-pages-using-chitra (Shared earlier in this forum; added here to keep the links together)
  • Distance between two points https://aravindavk.in/blog/distance-between-two-points
  • Tinted Images - Chitra https://aravindavk.in/blog/tinted-images
  • Half-Tinted Magic: How to Add a Color Tint to Just Part of an Image https://aravindavk.in/blog/half-tinted-magic
  • Perfect Fit Every Time: Automatically Resize Text https://aravindavk.in/blog/auto-resize-text-chitra
  • Paper Elephant - Chitra https://aravindavk.in/blog/paper-elephant-chitra
  • Highlight your Code with Chitra's New Syntax Highlighting Feature! https://aravindavk.in/blog/syntax-highlighting-chitra
Authors:
Sub packages:
chitra:init-exec
Dependencies:
qr, tinyview
Versions:
0.6.1 2026-Sep-10
0.6.0 2026-Aug-25
0.5.0 2026-Aug-06
0.4.2 2026-Jul-23
0.4.1 2026-Jul-09
Show all 11 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 1 downloads this month

  • 64 downloads total

Score:
0.8
Short URL:
chitra.dub.pm