cv::mat 矩阵相乘
One of my favorite interview questions is "how do you stay current on emerging front-end techniques and APIs?" I always get the standard "blogs" and "RSS" answers but rarely do I ever hear "from gurus on Twitter." I find that strange because I learn loads from Twitter, especially when it comes to CSS, because a tiny snippet can do something really neat.
我最喜欢的面试问题之一是“您如何保持对新兴前端技术和API的关注?” 我总是得到标准的“博客”和“ RSS”答案,但很少听到“ Twitter上的专家”的声音。 我发现这很奇怪,因为我从Twitter中学到了很多负载 ,尤其是在CSS方面,因为一个很小的代码片段可以做一些真正整洁的事情。
I had heard CSS mix-blend-mode
was something awesome but this blew my mind:
我听说CSS mix-blend-mode
很棒,但这让我大吃一惊:
Use `mix-blend-mode:multiply;` in your CSS to knock out white backgrounds from imagesPen: https://t.co/vE9cmxaG5K pic.twitter.com/v5VQEDoVH3
— Wes Bos (@wesbos)在CSS中使用`mix-blend-mode:multiply;`从图像中剔除白色背景笔: https : //t.co/vE9cmxaG5K pic.twitter.com/v5VQEVH3
— Wes Bos(@wesbos) April 4, 2016 2016年4月4日
Essentially, using mix-blend-mode: multiply;
on an image with white background would turn that white into a level of opacity as though the image were a .png
with opacity. Whoa! I created a demo here:
本质上,使用mix-blend-mode: multiply;
具有白色背景的图像上的图像会将白色变成不透明的程度,就好像图像是具有不透明度的.png
。 哇! 我在这里创建了一个演示:
What an awesome bit of CSS! Thanks to Wes Bos for the heads up on this nifty CSS feature!
多么棒CSS! 感谢Wes Bos率领此漂亮CSS功能!
cv::mat 矩阵相乘