Skip to content

ReneMuala/graphml

Repository files navigation

GRAPHML

A new way to create images

<!DOCTYPE graphml SYSTEM "doctype/graphml0.0.1.dtd">
<graphml>
   <img w="400" h="400">
       <paint color="rgb(0,0,0)" />
       <rect x="10%" y="10%" w="80%" h="80%">
           <fill color="rgb(50, 120, 255)"/>
           <arc center="90%,90%" radius="60%"
           begin="0" end="rad(360)">
               <fill color="rgb(255,255,255)"/>
           </arc>
        </rect>
       <export filename="image.png"/>
   </img>
</graphml>

image.png

building

  1. install clang, gnu make, libxml2 and libcairo (doxygen is optional).
  2. (optional) create an alias or symbolic link to "libxml2/libxml" named "libxml" at the include directory ("usr/include/" on most linux distros, by using "ln -s libxml2/libxml libxml") in case of having libxml2 header file errors...
  3. compile by running make at the project's root folder.

using

The graphml binary wil be compiled and saved to the build/ folder.

documentation

cheat sheet (https://github.com/renemuala/graphml-cheat-sheet)

some outputs

  1. Arcs arcs

  2. Smile face

  3. arc and smile composition arc&face

  4. Arcs and text (experimental) arc&text

About

a new way to sketch!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published