9 #include "../../stroke/BasicStrokeShaders.h"
22 "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`ThicknessNoiseShader`\n"
24 "[Thickness shader]\n"
26 ".. method:: __init__(amplitude, period)\n"
28 " Builds a ThicknessNoiseShader object.\n"
30 " :arg amplitude: The amplitude of the noise signal.\n"
31 " :type amplitude: float\n"
32 " :arg period: The period of the noise signal.\n"
33 " :type period: float\n"
35 ".. method:: shade(stroke)\n"
37 " Adds some noise to the stroke thickness.\n"
39 " :arg stroke: A Stroke object.\n"
40 " :type stroke: :class:`freestyle.types.Stroke`\n";
46 static const char *kwlist[] = {
"amplitude",
"period",
nullptr};
49 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"ff", (
char **)kwlist, &f1, &f2)) {
59 PyVarObject_HEAD_INIT(
nullptr, 0)
"ThicknessNoiseShader",
77 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
PyTypeObject StrokeShader_Type
static int ThicknessNoiseShader___init__(BPy_ThicknessNoiseShader *self, PyObject *args, PyObject *kwds)
static char ThicknessNoiseShader___doc__[]
PyTypeObject ThicknessNoiseShader_Type