repo.or.cz
/
PyX
/
mjg.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Makefile itself (previously forgotten)
[PyX/mjg.git]
/
manual
/
color.py
blob
d717e8614d6a22a247119ad78f2da0f42a25ce60
1
#!/usr/bin/env python
2
import
sys
3
sys
.
path
[:
0
] = [
".."
]
4
from
pyx
import
*
5
6
c
=
canvas
.
canvas
()
7
c
.
fill
(
path
.
rect
(
0
,
0
,
7
,
3
),
color
.
gray
(
0.8
))
8
c
.
fill
(
path
.
rect
(
1
,
1
,
1
,
1
),
color
.
rgb
.
red
)
9
c
.
fill
(
path
.
rect
(
3
,
1
,
1
,
1
),
color
.
rgb
.
green
)
10
c
.
fill
(
path
.
rect
(
5
,
1
,
1
,
1
),
color
.
rgb
.
blue
)
11
c
.
writetofile
(
"color"
)
12