sc::Color(3)

πŸ“¦
version 2.3.1 Β· 3 versions
, in fedora 43, fedora 44, ubuntu noble

✨ 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 a Ref< KeyVal >. it reads what it needs from there. iconic behaviour, honestly πŸ’œ
  • double red () const β€” gives you back the red component as a double. 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 new r, g, and b and the colour gets updated in place. returns void, 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