Technicalarticles
<canvas>
使用JavaScript在网页的HTML 元素上轻松创建简单的形状(如矩形,圆形,三角形和其他多边形)或由许多路径组成的更复杂的形状。然后,Fabric.js将允许您使用鼠标来操纵这些对象的大小,位置和旋转。<canvas>
元素上。
Github:https://github.com/fabricjs/fabric.js
css
模式之间提供了降级支持canvas
。该插件在以下三种模式下工作:css
:使用filter
property(default
)
canvas
:使用canvas
导出base64
auto
:css
首先使用模式,否则canvas
自动切换到模式
merge-images
将所有重复性任务抽象为一个简单的函数调用。Demo:http://camanjs.com/examples/
官网:http://camanjs.com/
Github:https://github.com/meltingice/CamanJS/
MarvinJ是派生自Marvin Framework的纯JavaScript图像处理框架。MarvinJ对于许多不同的图像处理应用程序而言既简单又强大。
Marvin提供了许多算法来操纵颜色和外观。Marvin还可以自动检测功能。使用基本图像功能(如边缘,拐角和形状)的能力是图像处理的基础。该插件有助于检测和分析对象的角点,从而确定场景中主要对象的位置。由于这些原因,可以自动裁剪出对象。
官网:https://www.marvinj.org/en/index.html
Github:https://github.com/gabrielarchanjo/marvinj
该JS库提供图像中的前2种主要颜色生成的互补渐变。这样一来,你的网站就可以使用从图片中导出的匹配渐变色来填充div标签了。这是一个易于使用的插件,可帮助你保持网站的外观美观。
这个插件是我个人非常喜欢的一个插件,因为我经历了很多麻烦才能获得该插件提供的类似输出。
HTML文件:
<!--the gradients will be applied to these outer divs, as background-images--><div class="gradient-wrap"> <img src="./samples/finding-dory.jpg" alt="" /></div><div class="gradient-wrap"> <img src="./samples/good-dinosaur.jpg" alt="" /></div>
<script src="path/to/grade.js"></script><script type="text/javascript"> window.addEventListener('load', function(){ /* A NodeList of all your image containers (Or a single Node). The library will locate an <img /> within each container to create the gradient from. */ Grade(document.querySelectorAll('.gradient-wrap')) })</script>
Github:https://github.com/benhowdle89/grade
DO U LIKE?