23 #include "../../stroke/BasicStrokeShaders.h"
36 "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`IncreasingColorShader`\n"
40 ".. method:: __init__(red_min, green_min, blue_min, alpha_min, red_max, green_max, blue_max, "
43 " Builds an IncreasingColorShader object.\n"
45 " :arg red_min: The first color red component.\n"
46 " :type red_min: float\n"
47 " :arg green_min: The first color green component.\n"
48 " :type green_min: float\n"
49 " :arg blue_min: The first color blue component.\n"
50 " :type blue_min: float\n"
51 " :arg alpha_min: The first color alpha value.\n"
52 " :type alpha_min: float\n"
53 " :arg red_max: The second color red component.\n"
54 " :type red_max: float\n"
55 " :arg green_max: The second color green component.\n"
56 " :type green_max: float\n"
57 " :arg blue_max: The second color blue component.\n"
58 " :type blue_max: float\n"
59 " :arg alpha_max: The second color alpha value.\n"
60 " :type alpha_max: float\n"
62 ".. method:: shade(stroke)\n"
64 " Assigns a varying color to the stroke. The user specifies two\n"
65 " colors A and B. The stroke color will change linearly from A to B\n"
66 " between the first and the last vertex.\n"
68 " :arg stroke: A Stroke object.\n"
69 " :type stroke: :class:`freestyle.types.Stroke`\n";
75 static const char *kwlist[] = {
86 float f1, f2, f3, f4, f5, f6, f7, f8;
88 if (!PyArg_ParseTupleAndKeywords(
89 args, kwds,
"ffffffff", (
char **)kwlist, &f1, &f2, &f3, &f4, &f5, &f6, &f7, &f8)) {
99 PyVarObject_HEAD_INIT(
nullptr, 0)
"IncreasingColorShader",
117 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