13 b.add_output<
decl::Color>(
"Point"_ustr).structure_type(StructureType::Field);
14 b.add_output<
decl::Color>(
"Fill"_ustr).structure_type(StructureType::Field);
21 params.
set_output(
"Point"_ustr, std::move(vertex_color));
25 params.
set_output(
"Fill"_ustr, std::move(fill_color));
33 ntype.
ui_name =
"Grease Pencil Color";
34 ntype.
ui_description =
"Retrieve the color of Grease Pencil points and fills";
#define NOD_REGISTER_NODE(REGISTER_FUNC)
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
static void node_register()
static void node_declare(NodeDeclarationBuilder &b)
static void node_geo_exec(GeoNodeExecParams params)
ColorSceneLinear4f< eAlpha::Premultiplied > ColorGeometry4f
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare