###############################################################################

# #
# This file is part of a style sheet example from the Freestyle application #
# Copyright (C) 2001-2005 Stephane Grabli #
# #
# http://freestyle.sourceforge.net #
# #
###############################################################################


from Freestyle import * from logical_operators import * from PredicatesU1D import * from shaders import * from ChainingIterators import *
id_list = [Id(0,0)]
upred = AndUP1D(QuantitativeInvisibilityUP1D(0), pyNatureUP1D(SILHOUETTE))
bpred = SameShapeIdBP1D()
Operators.select(NotUP1D(pyShapeIdUP1D(id_list)))
Operators.select(upred)
Operators.bidirectionalChain(ChainPredicateIterator(upred, bpred))
shaders_list = [
IncreasingColorShader(0.6, 0.6, 0.6, 0.4, 0.2, 0.2, 0.2, 0.4),
SamplingShader(4),
TextureAssignerShader(6),
IncreasingThicknessShader(2, 10),
SmoothingShader(20, 0.1, 0, 0.2, 0, 0, 0, 1)
]
Operators.create(TrueUP1D(), shaders_list)