23 #include "../../stroke/BasicStrokeShaders.h"
36 "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`ColorNoiseShader`\n"
40 ".. method:: __init__(amplitude, period)\n"
42 " Builds a ColorNoiseShader object.\n"
44 " :arg amplitude: The amplitude of the noise signal.\n"
45 " :type amplitude: float\n"
46 " :arg period: The period of the noise signal.\n"
47 " :type period: float\n"
49 ".. method:: shade(stroke)\n"
51 " Shader to add noise to the stroke colors.\n"
53 " :arg stroke: A Stroke object.\n"
54 " :type stroke: :class:`freestyle.types.Stroke`\n";
58 static const char *kwlist[] = {
"amplitude",
"period",
nullptr};
61 if (!PyArg_ParseTupleAndKeywords(args, kwds,
"ff", (
char **)kwlist, &f1, &f2)) {
71 PyVarObject_HEAD_INIT(
nullptr, 0)
"ColorNoiseShader",
89 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
static int ColorNoiseShader___init__(BPy_ColorNoiseShader *self, PyObject *args, PyObject *kwds)
static char ColorNoiseShader___doc__[]
PyTypeObject ColorNoiseShader_Type
PyTypeObject StrokeShader_Type