e4cbab0301
Brightness control is implemented by rendering content with transparent background, providing background as a separate item behind the content and adjusting opacity of the content item according to the selected brightness.
5 lines
91 B
JavaScript
5 lines
91 B
JavaScript
.pragma library
|
|
|
|
function contentOpacity(brightness) {
|
|
return 0.5 + brightness * 0.5
|
|
}
|