more progress

This commit is contained in:
Vítor Santos Costa
2012-11-27 12:10:41 +00:00
parent 6e3f01e0b3
commit e529e79582
9 changed files with 361 additions and 68 deletions

View File

@@ -0,0 +1,17 @@
:- use_module(library(python)).
:- initialization(main).
main :-
ex(X),
flush_output,
fail.
main.
ex(hello_world) :-
c = pyx:canvas:canvas,
:= c:text(0, 0, 'Hello, world!'),
:= c:stroke(path:line(0, 0, 2, 0)),
c.writePDFfile('hello.pdf').