Since ISO C++11 does not support %n$ operand number formats [-Wformat=], this patch indirectly implement it by regex and reorder the RGB channel before sending
to asprintf
Details
Details
- Reviewers
cfeck
RGB or v.rgb
kdialog --getcolor --format "%#3f, %#+f, %+4f);"
BGR or v.bgr
kdialog --getcolor --format "%3\$#3f, %2\$#+f, %1\$+4f);"
RRR or v.rrr
kdialog --getcolor --format "%1\$#3f, %1\$#+f, %1\$+4f);"
Diff Detail
Diff Detail
- Repository
- R229 KDialog
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Comment Actions
hi @cfeck in the last patch about allowing output color format, I left two unsolved. One of them is color reorder or swizzle which seems convenient to uses for arbitrarily handle color channels. Please take a look thanks.