26 return std::to_string(red_) +
" " + std::to_string(green_) +
" " + std::to_string(blue_);
31 return std::to_string(red_) +
", " + std::to_string(green_) +
", " + std::to_string(blue_);
36 return red_ == other.red_ && green_ == other.green_ && blue_ == other.blue_;
Represents a 32-bit RGBA color.
std::string to_csv_str() const
static constexpr std::uint8_t alpha_transparent
bool is_intrinsically_transparent() const
Checks if this color is intrinsically transparent based on its alpha channel.
bool is_transparent(const Rgba32 &extrinsic) const
Checks if this color should be treated as transparent.
bool equals_ignoring_alpha(const Rgba32 &other) const
bool is_extrinsically_transparent(const Rgba32 &extrinsic) const
Checks if this color matches the extrinsic transparency color.
std::string to_jasc_str() const