2025-01-22 16:18:30 +01:00

6 lines
117 B
C++

#include "LibInclude.h"
int RGB::getLuma() { return (r+g+b)/3; }
int RGB::toInt() { return (r<<16) | (g<<8) | b; }