Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YACReader/yacreader
/ changeBrightness
Function
changeBrightness
YACReader/render.cpp:27–30 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
25
}
26
27
inline int changeBrightness(int value, int brightness)
28
{
29
return kClamp(value + brightness * 255 / 100, 0, 255);
30
}
31
32
inline int changeContrast(int value, int contrast)
33
{
Callers
1
setFilter
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected