Use Canvas to seamlessly embed videos into a css background color

News Articles

Web Design News / News Articles 153 Views

There's a color derivation "bug" when having html videos in a website. I found that the problem comes from each users GPU. Those can be set to support the full RGB range (0 – 255) or a limited range (16-235). This limited range is causing a shift in color interpretation and makes it impossible to match a videos color to a CSS value globally.

Here's an example on how to fix this:

https://github.com/vin-ni/videomatchingbackgroundcolor

If you have any improvement, don't hesitate :)

submitted by /u/vinnivinnivinni
[link] [comments]

Comments