Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement] Add Filters to Two.js #600

Open
jonobr1 opened this issue Jan 24, 2022 · 0 comments
Open

[Enhancement] Add Filters to Two.js #600

jonobr1 opened this issue Jan 24, 2022 · 0 comments
Milestone

Comments

@jonobr1
Copy link
Owner

jonobr1 commented Jan 24, 2022

Is your feature request related to a problem? Please describe.
Both SVG and Canvas APIs have the ability to filter the rendering style of the content displayed. Take those along with custom shaders for the WebGL renderer to incorporate filtering into Two.js.

Describe the solution you'd like

var group = two.makeGroup();
group.add(circle, star, rectangle, path);
group.filter = 'blur(10px)';
star.filter = 'contrast(175%)'

Additional context
Filter specifications on MDN: https://developer.mozilla.org/en-US/docs/Web/CSS/filter

@jonobr1 jonobr1 added this to the v0.8.x milestone Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant