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

Reverse apply filters. #2150

Merged
merged 1 commit into from Dec 4, 2017
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -397,7 +397,7 @@ impl FrameBuilder {
};

// For each filter, create a new image with that composite mode.
for filter in &composite_ops.filters {
for filter in composite_ops.filters.iter().rev() {
let src_prim = PicturePrimitive::new_image(
Some(PictureCompositeMode::Filter(*filter)),
false,
Binary file not shown.
@@ -0,0 +1,18 @@
---
root:
items:
- type: stacking-context
bounds: [100, 100, 400, 400]
filters: [brightness(2),
contrast(0.4),
grayscale(0.2),
hue-rotate(270),
invert(0.6),
opacity(0.8),
saturate(10),
sepia(0.4),
blur(3)]
items:
- type: rect
color: red
bounds: 0 0 256 256
@@ -28,3 +28,4 @@
== filter-saturate-blue-alpha-1.yaml filter-saturate-blue-alpha-1-ref.yaml
== filter-hue-rotate-1.yaml filter-hue-rotate-1-ref.yaml
== filter-hue-rotate-alpha-1.yaml filter-hue-rotate-alpha-1-ref.yaml
== filter-long-chain.yaml filter-long-chain.png
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.