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

# #
# 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 PredicatesB1D import * from shaders import * from manu_shaders import * from ChainingIterators import *
Operators.select(QuantitativeInvisibilityUP1D(0))
Operators.bidirectionalChain(ChainSilhouetteIterator(), NotUP1D(QuantitativeInvisibilityUP1D(0)))
Operators.select(NotUP1D(pyNatureUP1D(SUGGESTIVE_CONTOUR)))
Operators.select(pyHigherLengthUP1D(20))
Operators.select(NotUP1D(pyHighViewMapDensityUP1D(0.06, 5)))
Operators.select(pyHighViewMapDensityUP1D(0.044, 5))
shaders_list = [
SamplingShader(2),
TextureAssignerShader(5),
SmoothingShader(100, 0.1, 0, 0.2, 0, 0, 0, 1),
IncreasingThicknessShader(1, 5),
IncreasingColorShader(0.5,0.0,0.1, 0.3, 0.4, 0.0, 0.0, 0.4)
]
Operators.create(TrueUP1D(), shaders_list)