We binding an Athens API for Cairo library. It fits pretty well as a backend to API.
Today i got some basics working.
Mostly, the functionality covered by:
AthensCairoSurfaceExamples example1
and
AthensCairoSurfaceExamples example2
which drawing nothing fancy but just rectangle(s) with solid color.
example2
"
self example2
"
| surf |
surf := self newSurface: 100@100.
surf drawDuring: [:can |
surf clear.
can setPaint: Color blue.
can drawShape: (
can createPath: [:path |
path
absolute;
lineTo: 50@0;
lineTo: 50@50;
lineTo: 0@50
])
].
Display getCanvas drawImage: surf asForm at: 0@0
P.S. Stef says that Athens API is quite cool :)
--
Best regards,
Igor Stasenko.
<<attachment: Screen Shot 2011-12-20 at 6.56.22 PM.png>>
<<attachment: Screen Shot 2011-12-20 at 6.57.04 PM.png>>
