Comments (3)
I wonder if passing the CSS strings directly in the filter
property wouldn't be better here instead of "inventing" new properties which doesn't really map to anything (e.g what should be the properties for drop-shadow
). So maybe something like the following could do?
new CanvasFilter([
{
filter: "convolveMatrix",
kernelMatrix: [ ... ]
},
{
filter: "brightness(70%)"
}
]);
cc @mysteryDate
from canvas2d.
I wonder if passing the CSS strings directly in the filter property wouldn't be better[.]
This would work for me.
from canvas2d.
@Kaiido I like that solution too, will be very easy to implement and test.
from canvas2d.
Related Issues (19)
- Add statistics for how many frames are painted to canvas during captureStream() and by requestFrame() while CanvasCaptureMediaStreamTrack HOT 2
- Serialization of CanvasFilters HOT 1
- CanvasFilters - Even <feImage>?
- CanvasFilters - How do we set the dimensions of the filter? HOT 3
- Reset / Clear
- Text Modifiers — Variable Fonts
- Color Input - P3 examples HOT 1
- Proposals HOT 11
- roundRect requiring an array HOT 6
- Use GLES fragment shader as filters
- Gradient spread methods
- Arbitrary gradient transforms HOT 3
- Integer only coordinate space mode. HOT 7
- `beginLayer` vs `beginFilter` HOT 2
- add clipRect() function HOT 2
- Web platform brianstorm meeting in California
- drawImageBatch can not be easily batched with some globalCompositeOperation modes HOT 1
- roundRect might be better as an extension to CanvasPath mixin HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from canvas2d.