Changeset 227 for nodebox/trunk/src/tests
- Timestamp:
- 11/05/07 14:37:27 (14 months ago)
- Location:
- nodebox/trunk/src/tests/graphics
- Files:
-
- 2 added
- 2 modified
-
002-text.png (modified) (previous)
-
002-text.py (modified) (1 diff)
-
005-path.png (added)
-
005-path.py (added)
Legend:
- Unmodified
- Added
- Removed
-
nodebox/trunk/src/tests/graphics/002-text.py
r201 r227 4 4 5 5 text("Hello", x, y) 6 stroke(0)7 nofill() 8 rect(x , y-12,50,20)6 drawpath(textpath("Hello", x + 100, y)) 7 rect(x, y-12,50,20, fill=None, stroke=0) 8 rect(x + 100, y-12,50,20, fill=None, stroke=0) 9 9 10 10 y += 30 11 11 align(LEFT) 12 stroke(0)13 nofill()14 rect(x, y-12,50,20)15 fill(0)16 12 text("Hello", x, y, width=50) 13 drawpath(textpath("Hello", x + 100, y, width=50)) 14 rect(x, y-12,50,20, fill=None, stroke=0) 15 rect(x + 100, y-12,50,20, fill=None, stroke=0) 17 16 18 17 y += 30 19 18 align(CENTER) 20 stroke(0)21 nofill()22 rect(x, y-12,50,20)23 fill(0)24 19 text("Hello", x, y, width=50) 20 drawpath(textpath("Hello", x + 100, y, width=50)) 21 rect(x, y-12,50,20, fill=None, stroke=0) 22 rect(x + 100, y-12,50,20, fill=None, stroke=0) 25 23 26 24 y += 30 27 25 align(RIGHT) 28 stroke(0)29 nofill()30 rect(x, y-12,50,20)31 fill(0)32 26 text("Hello", x, y, width=50) 27 drawpath(textpath("Hello", x + 100, y, width=50)) 28 rect(x, y-12,50,20, fill=None, stroke=0) 29 rect(x + 100, y-12,50,20, fill=None, stroke=0) 30
