23 #include "../../stroke/AdvancedStrokeShaders.h"
24 #include "../BPy_Convert.h"
37 "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`SpatialNoiseShader`\n"
41 ".. method:: __init__(amount, scale, num_octaves, smooth, pure_random)\n"
43 " Builds a SpatialNoiseShader object.\n"
45 " :arg amount: The amplitude of the noise.\n"
46 " :type amount: float\n"
47 " :arg scale: The noise frequency.\n"
48 " :type scale: float\n"
49 " :arg num_octaves: The number of octaves\n"
50 " :type num_octaves: int\n"
51 " :arg smooth: True if you want the noise to be smooth.\n"
52 " :type smooth: bool\n"
53 " :arg pure_random: True if you don't want any coherence.\n"
54 " :type pure_random: bool\n"
56 ".. method:: shade(stroke)\n"
58 " Spatial Noise stroke shader. Moves the vertices to make the stroke\n"
61 " :arg stroke: A Stroke object.\n"
62 " :type stroke: :class:`freestyle.types.Stroke`\n";
68 static const char *kwlist[] = {
69 "amount",
"scale",
"num_octaves",
"smooth",
"pure_random",
nullptr};
72 PyObject *obj4 =
nullptr, *obj5 =
nullptr;
74 if (!PyArg_ParseTupleAndKeywords(args,
95 PyVarObject_HEAD_INIT(
nullptr, 0)
"SpatialNoiseShader",
113 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
bool bool_from_PyBool(PyObject *b)
static char SpatialNoiseShader___doc__[]
PyTypeObject SpatialNoiseShader_Type
static int SpatialNoiseShader___init__(BPy_SpatialNoiseShader *self, PyObject *args, PyObject *kwds)
PyTypeObject StrokeShader_Type