Skip to content

Files

Latest commit

 

History

History

cairo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Cairo Example

(English/中文)

An example of drawing with PandaGL and Cairo graphics libraries. It creates a canvas using PandaGL, then creates a Surface based on the canvas for Cairo to draw complex shapes, fills simple shapes with PandaGL, and outputs the results as a PNG image file using Cairo.

# Build PandaGL
xmake build pandagl

# Package PandaGL
xmake package pandagl

# Build example project
xmake -P .

# Run example project
xmake run -P . -w .

Open the output.png file and you'll see something like this:

output