|
Blender V4.5
|
#include <BLI_color.hh>
Public Member Functions | |
| constexpr | ColorRGBA ()=default |
| constexpr | ColorRGBA (const ChannelStorageType rgba[4]) |
| constexpr | ColorRGBA (const ChannelStorageType r, const ChannelStorageType g, const ChannelStorageType b, const ChannelStorageType a) |
| operator ChannelStorageType * () | |
| operator const ChannelStorageType * () const | |
| uint64_t | hash () const |
Public Attributes | |
| ChannelStorageType | r |
| ChannelStorageType | g |
| ChannelStorageType | b |
| ChannelStorageType | a |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const ColorRGBA< ChannelStorageType, Space, Alpha > &c) |
Template class to store RGBA values with different precision, space, and alpha association.
Definition at line 91 of file BLI_color.hh.
|
constexprdefault |
|
inlineconstexpr |
Definition at line 96 of file BLI_color.hh.
|
inlineconstexpr |
Definition at line 101 of file BLI_color.hh.
|
inline |
|
inline |
Definition at line 109 of file BLI_color.hh.
References blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r.
|
inline |
Definition at line 114 of file BLI_color.hh.
References blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r.
|
friend |
Definition at line 119 of file BLI_color.hh.
| ChannelStorageType blender::ColorRGBA< ChannelStorageType, Space, Alpha >::a |
Definition at line 93 of file BLI_color.hh.
Referenced by blender::apply_color_factor(), blender::ed::greasepencil::apply_color_operation_for_mode(), blender::apply_uniform_tint(), blender::ed::greasepencil::boundary_to_curves(), blender::nodes::node_shader_color_ramp_cc::ColorBandFunction::call(), blender::io::grease_pencil::GreasePencilExporter::compute_average_stroke_color(), blender::ed::greasepencil::convert_flags_to_colors(), blender::io::usd::detail::convert_value(), blender::ed::space_node::create_inspection_string_for_generic_value(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_byte_color(), blender::ed::spreadsheet::draw_column_reorder_destination(), blender::bke::attribute_math::ColorGeometry4bMixer::finalize(), blender::bke::attribute_math::ColorGeometry4fMixer::finalize(), blender::get_base_color(), blender::nodes::node_fn_combine_color_cc::get_multi_function(), blender::ed::greasepencil::grease_pencil_primitive_invoke(), blender::ed::greasepencil::grease_pencil_vertex_paint_brightness_contrast_exec(), blender::ed::greasepencil::grease_pencil_vertex_paint_hsv_exec(), blender::ed::greasepencil::grease_pencil_vertex_paint_invert_exec(), blender::ed::greasepencil::grease_pencil_vertex_paint_levels_exec(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::hash(), blender::math::interpolate(), blender::math::interpolate(), isZero(), isZero(), blender::bke::attribute_math::ColorGeometry4bMixer::mix_in(), blender::bke::attribute_math::ColorGeometry4fMixer::mix_in(), blender::ed::space_node::node_draw_extra_info_panel_back(), blender::ed::space_node::nodelink_get_draw_config(), blender::ed::sculpt_paint::greasepencil::VertexAverageOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::VertexBlurOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::VertexPaintOperation::on_stroke_extended(), blender::ed::sculpt_paint::greasepencil::VertexSmearOperation::on_stroke_extended(), blender::operator<<(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::PaintOperationExecutor(), blender::ed::greasepencil::randomize_color(), blender::bke::attribute_math::ColorGeometry4fMixer::set(), blender::io::grease_pencil::shape_attributes_to_curves(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), timeline_cache_draw_geometry_nodes(), blender::io::grease_pencil::write_fill_color_attribute(), blender::io::grease_pencil::write_stroke_color_attribute(), and blender::io::grease_pencil::PDFExporter::write_stroke_to_polyline().
| ChannelStorageType blender::ColorRGBA< ChannelStorageType, Space, Alpha >::b |
Definition at line 93 of file BLI_color.hh.
Referenced by blender::apply_gradient_tint(), blender::apply_uniform_tint(), blender::bke::byte_color_to_bool(), blender::nodes::node_shader_sepcomb_rgb_cc::SeparateRGBFunction::call(), blender::bke::color_to_float3(), blender::ed::greasepencil::convert_flags_to_colors(), blender::io::usd::detail::convert_value(), blender::ed::space_node::create_inspection_string_for_generic_value(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_byte_color(), blender::bke::attribute_math::ColorGeometry4bMixer::finalize(), blender::bke::attribute_math::ColorGeometry4fMixer::finalize(), get_brush_color(), blender::nodes::node_fn_combine_color_cc::get_multi_function(), blender::nodes::node_fn_compare_cc::get_multi_function(), blender::ed::greasepencil::grease_pencil_vertex_paint_invert_exec(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::hash(), blender::math::interpolate(), blender::math::interpolate(), isZero(), isZero(), blender::bke::attribute_math::ColorGeometry4bMixer::mix_in(), blender::bke::attribute_math::ColorGeometry4fMixer::mix_in(), blender::ed::sculpt_paint::greasepencil::VertexBlurOperation::on_stroke_extended(), blender::operator<<(), blender::ed::greasepencil::randomize_color(), blender::bke::attribute_math::ColorGeometry4fMixer::set(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), and blender::io::grease_pencil::PDFExporter::write_stroke_to_polyline().
| ChannelStorageType blender::ColorRGBA< ChannelStorageType, Space, Alpha >::g |
Definition at line 93 of file BLI_color.hh.
Referenced by blender::apply_gradient_tint(), blender::apply_uniform_tint(), blender::bke::byte_color_to_bool(), blender::bke::byte_color_to_int2(), blender::bke::byte_color_to_short2(), blender::nodes::node_shader_sepcomb_rgb_cc::SeparateRGBFunction::call(), blender::bke::color_to_float2(), blender::bke::color_to_float3(), blender::bke::color_to_int2(), blender::bke::color_to_short2(), blender::ed::greasepencil::convert_flags_to_colors(), blender::io::usd::detail::convert_value(), blender::ed::space_node::create_inspection_string_for_generic_value(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_byte_color(), blender::bke::attribute_math::ColorGeometry4bMixer::finalize(), blender::bke::attribute_math::ColorGeometry4fMixer::finalize(), get_brush_color(), blender::nodes::node_fn_combine_color_cc::get_multi_function(), blender::nodes::node_fn_compare_cc::get_multi_function(), blender::ed::greasepencil::grease_pencil_vertex_paint_invert_exec(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::hash(), blender::math::interpolate(), blender::math::interpolate(), isZero(), isZero(), blender::bke::attribute_math::ColorGeometry4bMixer::mix_in(), blender::bke::attribute_math::ColorGeometry4fMixer::mix_in(), blender::ed::sculpt_paint::greasepencil::VertexBlurOperation::on_stroke_extended(), blender::operator<<(), blender::ed::greasepencil::randomize_color(), blender::bke::attribute_math::ColorGeometry4fMixer::set(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), and blender::io::grease_pencil::PDFExporter::write_stroke_to_polyline().
| ChannelStorageType blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r |
Definition at line 93 of file BLI_color.hh.
Referenced by blender::apply_gradient_tint(), blender::apply_uniform_tint(), blender::bke::byte_color_to_bool(), blender::bke::byte_color_to_int2(), blender::bke::byte_color_to_short2(), blender::nodes::node_shader_sepcomb_rgb_cc::SeparateRGBFunction::call(), blender::bke::color_to_float2(), blender::bke::color_to_float3(), blender::bke::color_to_int2(), blender::bke::color_to_short2(), blender::ed::greasepencil::convert_flags_to_colors(), blender::io::usd::detail::convert_value(), blender::ed::space_node::create_inspection_string_for_generic_value(), blender::ed::spreadsheet::SpreadsheetLayoutDrawer::draw_byte_color(), blender::bke::attribute_math::ColorGeometry4bMixer::finalize(), blender::bke::attribute_math::ColorGeometry4fMixer::finalize(), get_brush_color(), blender::ed::greasepencil::get_flag(), blender::color::get_luminance(), blender::color::get_luminance(), blender::nodes::node_fn_combine_color_cc::get_multi_function(), blender::nodes::node_fn_compare_cc::get_multi_function(), blender::ed::greasepencil::grease_pencil_vertex_paint_invert_exec(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::hash(), blender::math::interpolate(), blender::math::interpolate(), isZero(), isZero(), blender::io::ply::load_custom_attributes(), blender::bke::attribute_math::mix3(), blender::bke::attribute_math::mix4(), blender::bke::attribute_math::ColorGeometry4bMixer::mix_in(), blender::bke::attribute_math::ColorGeometry4fMixer::mix_in(), blender::ed::sculpt_paint::greasepencil::VertexBlurOperation::on_stroke_extended(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::operator ChannelStorageType *(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::operator const ChannelStorageType *(), blender::operator<<(), paint_and_tex_color_alpha(), blender::ed::greasepencil::randomize_color(), blender::bke::attribute_math::ColorGeometry4fMixer::set(), blender::ed::greasepencil::set_flag(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), and blender::io::grease_pencil::PDFExporter::write_stroke_to_polyline().