-
-
Notifications
You must be signed in to change notification settings - Fork 0
Drawing Context
Aravinda VK edited this page Jul 29, 2026
·
1 revision
After initializing the Chitra context, it is possible to use in two different ways.
auto ctx = new Chitra(1200, 900);
ctx.rect(100, 100, 600, 200);
ctx.saveAs("rect.png");Using with block,
auto ctx = new Chitra(1200, 900);
with (ctx)
{
rect(100, 100, 600, 200);
saveAs("rect.png");
}