Blender V4.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" " :arg red: The red component.\n" " :type red: float\n" " :arg green: The green component.\n" " :type green: float\n" " :arg blue: The blue component.\n" " :type blue: float\n" " :arg 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" " :arg 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__()

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

Definition at line 50 of file BPy_ConstantColorShader.cpp.

References self.

◆ 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" " :arg red:The red component.\n" " :type red:float\n" " :arg green:The green component.\n" " :type green:float\n" " :arg blue:The blue component.\n" " :type blue:float\n" " :arg 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" " :arg stroke:A Stroke object.\n" " :type stroke::class:`freestyle.types.Stroke`\n" [Color shader] )

Variable Documentation

◆ ConstantColorShader_Type

PyTypeObject ConstantColorShader_Type

Definition at line 66 of file BPy_ConstantColorShader.cpp.

Referenced by StrokeShader_Init().