Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IENT/YUView
/ gray
Method
gray
YUViewLib/src/common/Color.cpp:52–55 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
50
}
51
52
int Color::gray() const
53
{
54
return (this->values[0] * 11 + this->values[1] * 16 + this->values[1] * 5) / 32;
55
}
56
57
std::string Color::toHex() const
58
{
Callers
1
paintEvent
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected