本文整理汇总了Python中object.Object.blend方法的典型用法代码示例。如果您正苦于以下问题:Python Object.blend方法的具体用法?Python Object.blend怎么用?Python Object.blend使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类object.Object
的用法示例。
在下文中一共展示了Object.blend方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: blend
# 需要导入模块: from object import Object [as 别名]
# 或者: from object.Object import blend [as 别名]
def blend(self, add="", remove=""):
"""
@brief Overloaded blend to propagate blend to all children
of all sub-layers.
@var add: The color to be blended into the background.
@var remove: The color to be taken out of the blend
(has to be in there already).
"""
for item in self._items:
item.blend(add=add, remove=remove)
# The old method can carry on from here
Object.blend(self, add=add, remove=remove)