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

# #
# 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 PredicatesU0D import * from PredicatesB1D import * from Functions0D import * from shaders import *
Operators.select(QuantitativeInvisibilityUP1D(0))
Operators.bidirectionalChain(ChainSilhouetteIterator(0))
func = pyInverseCurvature2DAngleF0D()
Operators.recursiveSplit(func, pyParameterUP0D(0.2, 0.8), NotUP1D(pyHigherLengthUP1D(75)), 2)
Operators.select(pyHigherLengthUP1D(100))
shaders_list = [
SamplingShader(4),
pyGuidingLineShader(),
BackboneStretcherShader(30),
pyPerlinNoise1DShader(0.08, 5, 8),
TextureAssignerShader(4),
ConstantThicknessShader(3),
IncreasingColorShader(0.3, 0.3, 0.3, 0.5, 0.3, 0.4, 0.4, 0.3)
]
Operators.create(TrueUP1D(), shaders_list)