本文实例为大家分享了canvas实现滤镜效果的具体代码,供大家参考,具体内容如下
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>canvas-滤镜</title>
<style>
canvas{
border: 1px solid red;
float: left;
/* background-color:red; */
}
</style>
</head>
<body>
<canvas id="oldCanvas" width