9 #include "../../stroke/AdvancedStrokeShaders.h"
10 #include "../BPy_Convert.h"
23 "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`SpatialNoiseShader`\n"
27 ".. method:: __init__(amount, scale, num_octaves, smooth, pure_random)\n"
29 " Builds a SpatialNoiseShader object.\n"
31 " :arg amount: The amplitude of the noise.\n"
32 " :type amount: float\n"
33 " :arg scale: The noise frequency.\n"
34 " :type scale: float\n"
35 " :arg num_octaves: The number of octaves\n"
36 " :type num_octaves: int\n"
37 " :arg smooth: True if you want the noise to be smooth.\n"
38 " :type smooth: bool\n"
39 " :arg pure_random: True if you don't want any coherence.\n"
40 " :type pure_random: bool\n"
42 ".. method:: shade(stroke)\n"
44 " Spatial Noise stroke shader. Moves the vertices to make the stroke\n"
47 " :arg stroke: A Stroke object.\n"
48 " :type stroke: :class:`freestyle.types.Stroke`\n";
54 static const char *kwlist[] = {
55 "amount",
"scale",
"num_octaves",
"smooth",
"pure_random",
nullptr};
58 PyObject *obj4 =
nullptr, *obj5 =
nullptr;
60 if (!PyArg_ParseTupleAndKeywords(args,
81 PyVarObject_HEAD_INIT(
nullptr, 0)
"SpatialNoiseShader",
99 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