You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return (scale8_video(R, brightness) << 16) | (scale8_video(G, brightness) << 8) | scale8_video(B, brightness); // Use scale_video to ensure it doesn't get completely removed
36
36
return (R << 16) | (G << 8) | B;
37
37
}
38
38
39
-
uint32_tColor::GRB(uint8_t brightness) {
39
+
uint32_tColor::GRB(uint8_t brightness) const{
40
40
if (brightness != 255)
41
41
return (scale8_video(G, brightness) << 16) | (scale8_video(R, brightness) << 8) | scale8_video(B, brightness); // Use scale_video to ensure it doesn't get completely removed
42
42
return (G << 16) | (R << 8) | B;
43
43
}
44
44
45
-
Color Color::Scale(uint8_t brightness) {
45
+
Color Color::Scale(uint8_t brightness) const{
46
46
returnColor(scale8_video(R, brightness), scale8_video(G, brightness), scale8_video(B, brightness)); // Use scale_video to ensure it doesn't get completely removed
47
47
}
48
-
Color Color::Dim(uint8_t scale) {
48
+
Color Color::Dim(uint8_t scale) const{
49
49
returnScale(scale);
50
50
}
51
51
52
-
Color Color::DimIfNot(bool not_dim, uint8_t scale) {
52
+
Color Color::DimIfNot(bool not_dim, uint8_t scale) const{
0 commit comments