Opacity Is Not Just Opacity
Abstract
Web graphics travel with content across pages and themes, where changing backgrounds can require recoloring and maintenance. Opacity already makes a fixed object's appearance depend on its background, yet is usually understood only as how much the object obscures it. In fact, opacity controls the scaling of the object-background color difference; transparency is only one effect of this relationship. Zero places the output at the background and one at the source color, but difference scaling need not stop at either position. We retain the compositing expression and extend the coefficient domain from to the real numbers: negative values reverse the difference, whereas values above one expand it in the same direction. We focus on same-direction expansion for reusing Web graphics across backgrounds. Each object carries a fixed source color and coefficient, while the actual background determines the enhancement direction. Background-adaptive contrast enhancement thus becomes part of the object's compositing properties, reducing the design and maintenance of separate color variants. The implementation reuses the original equation without increasing the per-pixel arithmetic operation count within the same pipeline. Enumerating all 8-bit sRGB source colors on 16 predefined light and dark canvases, a fixed increases the contrast ratio in 99.8145% of combinations. Without changing source colors, 4.8346% of all combinations newly reach the contrast threshold. Output validation and timing across three browsers demonstrate implementation in the same WebGL pipeline, with no sustained additional runtime observed.
Create a lesson
Metadata
- Categories
- cs.GR, cs.HC
- Comments
- 10 pages, 8 figures, 1 table. Code: https://github.com/ln-one/opacity-is-not-just-opacity
Recent in the same category
Large, Protruding 3D Image Presentation Using Multiple Non-Aligned Monitors With Perceptual Transparency Yielding Mixed Reality Presence
Recent in the same categorycs.GRYuri Mikawa, Taiki Fukiage
v-Means: A Visible and Explainable Clustering Algorithm
Recent in the same categorycs.GRLiantian Shan, Robert S. Laramee
Spatial Precedent as Generative Resource: A Retrieval and Adaptation Framework for Residential Floor Plan Design
Recent in the same categorycs.GRCamilo Cruz Gambardella, Victor Calixto, Wanchao Su et al.
JADE: Translucency Needs a Medium -- Editable Subsurface Scattering on Radiant Foam
Recent in the same categorycs.GRGuillermo Figueroa-Araneda, Hector Andrade-Loarca, Shrisudhan Govindarajan et al.
Direction-Guided Integer Cone Optimization via Hodge Decomposition
Recent in the same categorycs.GRZhantao Liu
SoulLink: Capability-Aware Continuous Affective Animation for 2D and 3D Avatars
Recent in the same categorycs.GRYijun Feng, Zhijun Zhang, Zhi Chen et al.