[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Re: question about svg graphic format
Horst F. JENS wrote:
Niki wrote:
I have pyrex interface to AGG. It can be used for port agg svg
rendering for pygame.
Niki Spahiev
Hi Niki,
that sound interesting. could you post a link ?
http://vintech.bg/~niki/python/aggpyrex.tar.gz
No demo yet and tested only on win32. Requires latest c++ capable pyrex.
usage:
from agg_scene import *
a = AggAttribute()
a.stroke_color = 100,200,50,255
a.stroke_flag = 1
a.stroke_width = 2
path = AggPath()
path.move_to(...)
path.line_to(...)
root = AggNode(None, a, a, path)
root.addNode(...) # more nodes
c = AggCanvas(addres_of_mem, width, height, stride)
c.clear(255,255,255,255)
c.draw(root, AggTrans(1,0,0,1,0,0), a)
not all path attributes from svg demo are implemented
HTH
Niki Spahiev