I came across the following line
hsb.s = max != 0 ? 255 * delta / max : 0;
What do the ? and : mean in this conte
?
:
Properly parenthesized for clarity, it is
hsb.s = (max != 0) ? (255 * delta / max) : 0;
meaning return either
255*delta/max
0