turtle v0.0.6

Виталий Фадеев vital.fadeev at gmail.com
Fri May 21 03:01:55 UTC 2021


On Wednesday, 19 May 2021 at 16:41:54 UTC, Guillaume Piolat wrote:
> https://code.dlang.org/packages/turtle
>
> "The turtle package provides a friendly, software-rendered, and 
> hi-DPI drawing solution, for when all you want is a Canvas API. 
> It depends on SDL for windowing."
>
> [...]

dplug:canvas, dplug:graphcis is interesting.

>                 fillStyle = gradient;

>                 beginPath();
>                     moveTo(-1, -1);
>                     lineTo( 0, -3);
>                     lineTo(+1, -1);
>                     lineTo(+3,  0);
>                     lineTo(+1, +1);
>                     lineTo( 0, +3);
>                     lineTo(-1, +1);
>                     lineTo(-3,  0);
>                 closePath();
>                 fill();
Looks readable.


More information about the Digitalmars-d-announce mailing list