Update Files
This commit is contained in:
5
Kha/Backends/Kinc-hxcpp/khacpp/test/native/lib/RGB.cpp
Normal file
5
Kha/Backends/Kinc-hxcpp/khacpp/test/native/lib/RGB.cpp
Normal file
@ -0,0 +1,5 @@
|
||||
#include "LibInclude.h"
|
||||
|
||||
int RGB::getLuma() { return (r+g+b)/3; }
|
||||
|
||||
int RGB::toInt() { return (r<<16) | (g<<8) | b; }
|
Reference in New Issue
Block a user