21 ConstantColorShader___doc__,
22 "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`ConstantColorShader`\n"
26 ".. method:: __init__(red, green, blue, alpha=1.0)\n"
28 " Builds a ConstantColorShader object.\n"
30 " :param red: The red component.\n"
32 " :param green: The green component.\n"
33 " :type green: float\n"
34 " :param blue: The blue component.\n"
35 " :type blue: float\n"
36 " :param alpha: The alpha value.\n"
37 " :type alpha: float\n"
39 ".. method:: shade(stroke)\n"
41 " Assigns a constant color to every vertex of the Stroke.\n"
43 " :param stroke: A Stroke object.\n"
44 " :type stroke: :class:`freestyle.types.Stroke`\n");
49 static const char *kwlist[] = {
"red",
"green",
"blue",
"alpha",
nullptr};
50 float f1, f2, f3, f4 = 1.0;
52 if (!PyArg_ParseTupleAndKeywords(args,
75 PyVarObject_HEAD_INIT(
nullptr, 0)
76 "ConstantColorShader",
94 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
95 ConstantColorShader___doc__,
PyTypeObject ConstantColorShader_Type
static int ConstantColorShader___init__(BPy_ConstantColorShader *self, PyObject *args, PyObject *kwds)
PyDoc_STRVAR(FalseBP1D___doc__, "Class hierarchy: :class:`freestyle.types.BinaryPredicate1D` > :class:`FalseBP1D`\n" "\n" ".. method:: __call__(inter1, inter2)\n" "\n" " Always returns false.\n" "\n" " :param inter1: The first Interface1D object.\n" " :type inter1: :class:`freestyle.types.Interface1D`\n" " :param inter2: The second Interface1D object.\n" " :type inter2: :class:`freestyle.types.Interface1D`\n" " :return: False.\n" " :rtype: bool\n")
PyTypeObject StrokeShader_Type
Class gathering basic stroke shaders.
PyObject_HEAD Freestyle::StrokeShader * ss