Changeset 174
- Timestamp:
- 10/01/07 14:05:46 (15 months ago)
- Location:
- libraries/colors
- Files:
-
- 4 modified
-
__init__.py (modified) (2 diffs)
-
colors_example1.py (modified) (1 diff)
-
colors_example2.py (modified) (1 diff)
-
colors_example3.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
libraries/colors/__init__.py
r173 r174 7 7 from copy import deepcopy 8 8 from nodebox.graphics import Color as _Color 9 from nodebox.graphics import Grob, RGB, HSB, CMYK, CORNER, random, choice, files 9 from nodebox.graphics import Grob, RGB, HSB, CMYK, CORNER 10 from nodebox.util import random, choice, files 10 11 from nodebox.graphics.cocoa import _restore, _save 11 12 from AppKit import NSShadow, NSColor … … 2679 2680 (x, y), (w, h) = path.bounds 2680 2681 if x+w > 0 and y+h > 0 and x < _ctx.WIDTH and y < _ctx.HEIGHT: 2681 _ctx. _canvas.append(self)2682 _ctx.canvas.append(self) 2682 2683 2683 2684 if _shadow: -
libraries/colors/colors_example1.py
r136 r174 1 colors = ximport("colors") 1 try: 2 colors = ximport("colors") 3 except ImportError: 4 colors = ximport("__init__") 2 5 3 6 # Deep green gradient background. -
libraries/colors/colors_example2.py
r136 r174 1 colors = ximport("colors") 1 try: 2 colors = ximport("colors") 3 except ImportError: 4 colors = ximport("__init__") 2 5 3 6 # Aggregates are collections of colorranges (e.g. warm, dark) -
libraries/colors/colors_example3.py
r145 r174 1 colors = ximport("colors") 1 try: 2 colors = ximport("colors") 3 except ImportError: 4 colors = ximport("__init__") 2 5 3 6 size(600, 600)
