8000 GitHub - kerem3338/canvasd: A Graphics library written in D Programming language.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kerem3338/canvasd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Canvas.d

or (canvasD)

A Graphics library written in D Programming language.

Installing

You can get source code of canvasD from running the following command

git clone https://github.com/kerem3338/canvasd

Example

here's a example of a simple program which creates a 100x100 size canvas and fills with red color

import canvas;
import std.file;

void main() {
    Canvas canvas = new Canvas(100,100);
    
    canvas.fill(Colors.red);

    std.file.write("example.ppm",canvas.getPPM());
}

You can compile to example code with following command.

dmd canvas.d <filename>.d

If you curious and ask why PPM?, don't forget you can use ffmpeg to convert into another image format

Documentation

You can generate documentation for canvasD using Doxygen

Please keep in mind, i'm not a very good programmer.

About

A Graphics library written in D Programming language.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0