###############################################################################
# #
# 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 PredicatesB1D import *
from shaders import *
Operators.select(QuantitativeInvisibilityUP1D(1))
Operators.bidirectionalChain(ChainSilhouetteIterator(), NotUP1D(QuantitativeInvisibilityUP1D(1)))
shaders_list = [
StrokeTextureShader("smoothAlpha.bmp", Stroke.OPAQUE_MEDIUM, 0),
pyIncreasingThicknessShader(2, 3),
pyConstantColorShader(0.7,0.7,0.7, 1)
]
Operators.create(TrueUP1D(), shaders_list)