Blender  V3.3
node_composite_hue_sat_val.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2006 Blender Foundation. All rights reserved. */
3 
8 #include "node_composite_util.hh"
9 
10 /* **************** Hue Saturation ******************** */
11 
13 
15 {
16  b.add_input<decl::Color>(N_("Image")).default_value({1.0f, 1.0f, 1.0f, 1.0f});
17  b.add_input<decl::Float>(N_("Hue")).default_value(0.5f).min(0.0f).max(1.0f).subtype(PROP_FACTOR);
18  b.add_input<decl::Float>(N_("Saturation"))
19  .default_value(1.0f)
20  .min(0.0f)
21  .max(2.0f)
22  .subtype(PROP_FACTOR);
23  b.add_input<decl::Float>(N_("Value"))
24  .default_value(1.0f)
25  .min(0.0f)
26  .max(2.0f)
27  .subtype(PROP_FACTOR);
28  b.add_input<decl::Float>(N_("Fac")).default_value(1.0f).min(0.0f).max(1.0f).subtype(PROP_FACTOR);
29  b.add_output<decl::Color>(N_("Image"));
30 }
31 
32 } // namespace blender::nodes::node_composite_hue_sat_val_cc
33 
35 {
37 
38  static bNodeType ntype;
39 
40  cmp_node_type_base(&ntype, CMP_NODE_HUE_SAT, "Hue Saturation Value", NODE_CLASS_OP_COLOR);
42 
43  nodeRegisterType(&ntype);
44 }
#define CMP_NODE_HUE_SAT
Definition: BKE_node.h:1214
#define NODE_CLASS_OP_COLOR
Definition: BKE_node.h:347
void nodeRegisterType(struct bNodeType *ntype)
Definition: node.cc:1357
@ PROP_FACTOR
Definition: RNA_types.h:144
static void cmp_node_huesatval_declare(NodeDeclarationBuilder &b)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_cmp_hue_sat()
void cmp_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
Defines a node type.
Definition: BKE_node.h:226
NodeDeclareFunction declare
Definition: BKE_node.h:324
#define N_(msgid)