5.2. Effect Functions¶
These functions can be used for post effects:
posteffects = [shadow]
[shadow]
type = dropshadow
color = (0, 0, 0)
Each effect function has it’s own parameters.
5.2.1. Outline¶
- class fonteffects.Outline(*k, **kw)[source]
Creates an outline around the glyph
Parameters: - color – The color of the outline
- opacity – The opacity of the color [0,100]
- width – The width of the outline
- spread – The radius of the blur of the outline
5.2.2. DropShadow¶
- class fonteffects.DropShadow(*k, **kw)[source]
Applies a drop shadow to the glyphs
5.2.3. Gaussian Blur¶
- class fonteffects.GaussianBlur(*k, **kw)[source]
Applies a gaussian blur to the glyph
5.2.4. KernelBlur¶
- class fonteffects.KernelBlur(*k, **kw)[source]
Applies a simple box filter where the middle element has value ‘strength’
5.2.5. Halfsize¶
- class fonteffects.Halfsize(*k, **kw)[source]
Down scales the glyph by a factor, using bilinear factoring