repo.or.cz
/
PyX.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
warn for text as path being impossible without a font
[PyX.git]
/
manual
/
color.py
blob
380dd2c73e236d61f788889e4df5f4be3ca39b5c
1
from
pyx
import
*
2
3
c
=
canvas
.
canvas
()
4
c
.
fill
(
path
.
rect
(
0
,
0
,
7
,
3
), [
color
.
gray
(
0.8
)])
5
c
.
fill
(
path
.
rect
(
1
,
1
,
1
,
1
), [
color
.
rgb
.
red
])
6
c
.
fill
(
path
.
rect
(
3
,
1
,
1
,
1
), [
color
.
rgb
.
green
])
7
c
.
fill
(
path
.
rect
(
5
,
1
,
1
,
1
), [
color
.
rgb
.
blue
])
8
c
.
writePDFfile
()
9