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

# #
# This file is part of a style sheet example from the Freestyle application #
# Copyright (C) 2001-2004 Stephane Grabli (Stephane.Grabli@imag.fr) #
# #
# http://artis.imag.fr/Software/Freestyle #
# #
###############################################################################


from Freestyle import * from logical_operators import * from PredicatesU1D import * from shaders import * from ChainingIterators import *
id_list = [Id(0,0)]
upred = pyIsOccludedByItselfUP1D()
bpred = SameShapeIdBP1D()
Operators.select(pyShapeIdUP1D(id_list))
Operators.select(upred)
shaders_list = [
IncreasingColorShader(0, 0, 0, 0.5, 0.3, 0.3, 0.3, 0.5),
SamplingShader(4),
TextureAssignerShader(7),
ConstantThicknessShader(4),
ThicknessVariationPatternShader("pattern05.bmp", 0, 5, 0)
]
Operators.create(TrueUP1D(), shaders_list)