9 #include "../../stroke/BasicStrokeShaders.h"
22 "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`IncreasingColorShader`\n"
26 ".. method:: __init__(red_min, green_min, blue_min, alpha_min, red_max, green_max, blue_max, "
29 " Builds an IncreasingColorShader object.\n"
31 " :arg red_min: The first color red component.\n"
32 " :type red_min: float\n"
33 " :arg green_min: The first color green component.\n"
34 " :type green_min: float\n"
35 " :arg blue_min: The first color blue component.\n"
36 " :type blue_min: float\n"
37 " :arg alpha_min: The first color alpha value.\n"
38 " :type alpha_min: float\n"
39 " :arg red_max: The second color red component.\n"
40 " :type red_max: float\n"
41 " :arg green_max: The second color green component.\n"
42 " :type green_max: float\n"
43 " :arg blue_max: The second color blue component.\n"
44 " :type blue_max: float\n"
45 " :arg alpha_max: The second color alpha value.\n"
46 " :type alpha_max: float\n"
48 ".. method:: shade(stroke)\n"
50 " Assigns a varying color to the stroke. The user specifies two\n"
51 " colors A and B. The stroke color will change linearly from A to B\n"
52 " between the first and the last vertex.\n"
54 " :arg stroke: A Stroke object.\n"
55 " :type stroke: :class:`freestyle.types.Stroke`\n";
61 static const char *kwlist[] = {
72 float f1, f2, f3, f4, f5, f6, f7, f8;
74 if (!PyArg_ParseTupleAndKeywords(
75 args, kwds,
"ffffffff", (
char **)kwlist, &f1, &f2, &f3, &f4, &f5, &f6, &f7, &f8)) {
85 PyVarObject_HEAD_INIT(
nullptr, 0)
"IncreasingColorShader",
103 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
static char IncreasingColorShader___doc__[]
PyTypeObject IncreasingColorShader_Type
static int IncreasingColorShader___init__(BPy_IncreasingColorShader *self, PyObject *args, PyObject *kwds)
PyTypeObject StrokeShader_Type