Comments (3)
Yes that would be nice.
Note that for Path2D you can still somehow hack around the situation by creating a new Path2D transformed by the inverse matrix you want to apply: https://jsfiddle.net/1t65ukea/
But I agree the API ought to offer a simpler way to do this.
from canvas2d.
The transform & inverse trick unfortunately doesn't help with applying a gradient style to strokes, because transforming the context transforms the stroke geometry itself, resulting in odd-looking width, joins, etc.: https://jsfiddle.net/mwelsh/7zLac8m3/9/
from canvas2d.
from canvas2d.
Related Issues (20)
- 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 HOT 1
- Color Input - P3 examples HOT 1
- Proposals HOT 11
- roundRect requiring an array HOT 6
- Make CSS filters work with `CanvasFilter` HOT 3
- Use GLES fragment shader as filters
- Gradient spread methods
- Integer only coordinate space mode. HOT 7
- `beginLayer` vs `beginFilter` HOT 2
- add clipRect() function HOT 2
- Web platform brianstorm meeting in California
- Make canvas2d faster than Webgl
- [Mesh2D] Triangle order HOT 2
- 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.