sc::Color(3)
β¨ sc::Color β¨
okay so bestie, welcome to sc::Color(3) β it's a lil' class from the sc namespace, living in the Library Functions Manual, and it's literally just here to hold a red, green, and blue value for you. that's it. that's the whole vibe. a triple of doubles, looking cute, minding its business π
πΈ NAME πΈ
sc::Color β your tiny little RGB container, no cap π
π SYNOPSIS π
π« Public Member Functions π«
Color (double r, double g, double b)
Color (const Ref< KeyVal > &)
double red () const
double green () const
double blue () const
void set_rgb (double r, double g, double b)
π¦ DESCRIPTION π¦
so like. it's a colour. and the way that it works is chef's kiss simple β you make one, you poke at its red, green, and blue components, and if you ever feel like changing your mind you just call set_rgb and boom, new colour, new you, main character energy π
here's the full rundown of everything it can do, every single one, no skips:
Color (double r, double g, double b)β the constructor, bestie. hand it a red, a green, and a blue as doubles and it will hold onto them for you. three little numbers, one adorable object πColor (const Ref< KeyVal > &)β the other constructor, for when your values are coming in wrapped up in aRef< KeyVal >. it reads what it needs from there. iconic behaviour, honestly πdouble red () constβ gives you back the red component as adouble. that's it. she's a getter and she knows it β¨double green () constβ same deal but for green πdouble blue () constβ and again, but for blue πvoid set_rgb (double r, double g, double b)β the glow-up button. pass in a newr,g, andband the colour gets updated in place. returnsvoid, so don't go looking for a return value, there isn't one, periodt π
fr fr that's the entire public interface. nothing hidden, nothing sneaky, just vibes and three doubles π«Ά
π Author π
okay so this whole thing was generated automatically by Doxygen for MPQC from the source code β so like, don't come for me about the prose, a robot wrote the docs and i just gave them a personality π
and that's the page, bestie!! stay colourful, stay slay, and remember: it's giving sc::Color(3) from MPQC, Version 2.3.1 β mwah πβ¨π
π¦ where this page comes from
- fedora 43: mpqc-devel 2.3.1-65.fc43 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- fedora 43: mpqc-devel 2.3.1-65.fc43 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- fedora 44: mpqc-devel 2.3.1-67.fc44 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- fedora 44: mpqc-devel 2.3.1-67.fc44 Β· GPL-2.0-or-later AND LicenseRef-Callaway-LGPLv2+
- ubuntu noble: libsc-doc 2.3.1-22build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms