Changeset 959
- Timestamp:
- 07/04/09 10:12:55 (8 months ago)
- Files:
-
- 1 modified
-
nodebox-gl/trunk/nodebox/graphics/context.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
nodebox-gl/trunk/nodebox/graphics/context.py
r871 r959 1328 1328 1329 1329 def __init__(self, x=0, y=0, width=None, height=None, origin=(0,0), 1330 scale=1.0, rotation=0, opacity=1.0, duration=1.0, parent=None): 1330 scale=1.0, rotation=0, opacity=1.0, duration=1.0, name=None, 1331 parent=None): 1331 1332 """ Creates a new drawing layer that can be appended to the canvas. 1332 1333 The duration defines the time (seconds) it takes to animate transformations or opacity. … … 1334 1335 """ 1335 1336 if origin == CENTER: 1336 origin = (0.5,0.5) ,1337 origin = (0.5,0.5) 1337 1338 origin_mode = RELATIVE 1338 1339 else: 1339 1340 origin_mode = ABSOLUTE 1340 1341 Prototype.__init__(self) # facilitates extension on the fly. 1341 self.name = None1342 self.name = name 1342 1343 self.parent = parent 1343 1344 self._x = Transition(x)
