Blender  V3.3
Functions | Variables
BPy_ConstantColorShader.cpp File Reference
#include "BPy_ConstantColorShader.h"
#include "../../stroke/BasicStrokeShaders.h"

Go to the source code of this file.

Functions

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

Variables

static char ConstantColorShader___doc__ []
 
PyTypeObject ConstantColorShader_Type
 

Function Documentation

◆ ConstantColorShader___init__()

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

Definition at line 46 of file BPy_ConstantColorShader.cpp.

Variable Documentation

◆ ConstantColorShader___doc__

char ConstantColorShader___doc__[]
static
Initial value:
=
"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"

Definition at line 21 of file BPy_ConstantColorShader.cpp.

◆ ConstantColorShader_Type

PyTypeObject ConstantColorShader_Type

Definition at line 62 of file BPy_ConstantColorShader.cpp.

Referenced by StrokeShader_Init().