Blender V5.3
BPy_ConstantColorShader.cpp File Reference

Go to the source code of this file.

Functions

 PyDoc_STRVAR (ConstantColorShader___doc__, "Class hierarchy: :class:`freestyle.types.StrokeShader` > :class:`ConstantColorShader`\n" "\n" "[Color shader]\n" "\n" ".. method:: __init__(red, green, blue, alpha=1.0)\n" "\n" " Builds a ConstantColorShader object.\n" "\n" " :param red: The red component.\n" " :type red: float\n" " :param green: The green component.\n" " :type green: float\n" " :param blue: The blue component.\n" " :type blue: float\n" " :param alpha: The alpha value.\n" " :type alpha: float\n" "\n" ".. method:: shade(stroke)\n" "\n" " Assigns a constant color to every vertex of the Stroke.\n" "\n" " :param stroke: A Stroke object.\n" " :type stroke: :class:`freestyle.types.Stroke`\n")
static int ConstantColorShader___init__ (BPy_ConstantColorShader *self, PyObject *args, PyObject *kwds)

Variables

PyTypeObject ConstantColorShader_Type

Function Documentation

◆ ConstantColorShader___init__()

int ConstantColorShader___init__ ( BPy_ConstantColorShader * self,
PyObject * args,
PyObject * kwds )
static

◆ PyDoc_STRVAR()

PyDoc_STRVAR ( ConstantColorShader___doc__ ,
"Class hierarchy: :class:`freestyle.types.StrokeShader` ,
:class:`ConstantColorShader`\n" "\n" "\n" "\n" ".. method::__init__(red, green, blue, alpha=1.0)\n" "\n" " Builds a ConstantColorShader object.\n" "\n" " :param red:The red component.\n" " :type red:float\n" " :param green:The green component.\n" " :type green:float\n" " :param blue:The blue component.\n" " :type blue:float\n" " :param alpha:The alpha value.\n" " :type alpha:float\n" "\n" ".. method::shade(stroke)\n" "\n" " Assigns a constant color to every vertex of the Stroke.\n" "\n" " :param stroke:A Stroke object.\n" " :type stroke::class:`freestyle.types.Stroke`\n" [Color shader] )

References PyDoc_STRVAR().

Variable Documentation

◆ ConstantColorShader_Type

PyTypeObject ConstantColorShader_Type

Definition at line 74 of file BPy_ConstantColorShader.cpp.

Referenced by StrokeShader_Init().