-
-
Notifications
You must be signed in to change notification settings - Fork 171
Open
Labels
Milestone
Description
- blurred image without clipping:
auto scene = tvg::Scene::gen();
auto shape1 = tvg::Shape::gen();
shape1->appendRect(100, 100, 600, 600);
shape1->fill(255, 0, 255, 160);
scene->push(shape1);
scene->push(tvg::SceneEffect::GaussianBlur, 450.0f, 0, 0, 10);
canvas->push(scene);
- I want to clip this blurred image:
auto scene = tvg::Scene::gen();
auto shape1 = tvg::Shape::gen();
shape1->appendRect(100, 100, 600, 600);
shape1->fill(255, 0, 255, 160);
scene->push(shape1);
auto clipShape = tvg::Shape::gen();
clipShape->appendRect(100, 100, 100, 100);
scene->clip(clipShape);
scene->push(tvg::SceneEffect::GaussianBlur, 50.0f, 0, 0, 10);
canvas->push(scene);
result:
- this is what I'd expect:
I don't see how to achieve this effect in TVG. Am I missing something?
Originally posted by @mgrudzinska in #2893 (comment)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status