ColorCmd(3U)
π ColorCmd(3U) π
okay bestie, welcome to the InterViews Reference Manual β¨ this lil page is all about ColorCmd, and honestly? she's giving glow-up energy π
β¨ NAME β¨
ColorCmd β the command for setting components' color attributes π
β¨ SYNOPSIS β¨
#include <Unidraw/Commands/color.h>
β¨ DESCRIPTION β¨
so like, ColorCmd is a purely interpretive command, no cap π
and what does she do? she sets the foreground and background color attributes of your selected components. that's it, that's the whole vibe. iconic behavior fr fr π¦
β¨ PUBLIC OPERATIONS β¨
ColorCmd(ControlInfo*, PSColor* fg = nil, PSColor* bg = nil)ColorCmd(Editor* = nil, PSColor* fg = nil, PSColor* bg = nil)β make yourself aColorCmdπ«Ά you can optionally pass in the foreground (fg) and background (bg)PSColors that your components should adopt. and yeah, both of them default tonil, so no pressure πΈvirtual void Execute()βColorCmdextendsExecuteso it sets the value of the affected editor'sColorVarinstance, if it defines one. that "if" is doing a lot of work bestie, don't skip it πPSColor* GetFgColor()PSColor* GetBgColor()β hand over thePSColors you supplied in the constructor. that's it, that's the tea β
β¨ SEE ALSO β¨
Command(3U), pspaint(3U), statevars(3U) β go read these too, they're the friend group π
and that's the whole page!! this one came from Unidraw, dated 23 January 1991 (yes she's vintage, yes she still ate π
), and the manual name is ColorCmd(3U) in case you forgot already π mwah, go color something pretty πβ¨
π¦ where this page comes from
- debian bookworm: ivtools-dev 2.0.11d.a1-1+b4
- debian trixie: ivtools-dev 2.0.11d.a1-3+b4
- ubuntu jammy: ivtools-dev 2.0.11d.a1-1build1
- ubuntu noble: ivtools-dev 2.0.11d.a1-3build1
- ubuntu questing: ivtools-dev 2.0.11d.a1-3build7
- ubuntu resolute: ivtools-dev 2.0.11d.a1-3build9
- ubuntu stonking: ivtools-dev 2.1.1+git.2025.07.26.a1-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms