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

# #
# 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 *
Operators.select(AndUP1D(QuantitativeInvisibilityUP1D(0), ExternalContourUP1D()))
upred = ExternalContourUP1D()
bpred = TrueBP1D()
Operators.bidirectionalChain(ChainPredicateIterator(upred, bpred), NotUP1D(QuantitativeInvisibilityUP1D(0)))
shaders_list = [
pySamplingShader(10),
SmoothingShader(400,0,0,0.2,0,0,0,1),
TextureAssignerShader(2),
pyIncreasingColorShader(0.6, 0.4, 0.4,1,0.9,0.8,0.8,1),
pyIncreasingThicknessShader(15, 200),
ThicknessVariationPatternShader("pattern04.bmp", 10, 50)
]
Operators.create(TrueUP1D(), shaders_list)