tests: Add a visual test for fractional blur strength

This commit is contained in:
TÖRÖK Attila 2023-07-20 22:22:01 +02:00 committed by Nathan Adams
parent 9c661a14c3
commit 7fe1c71257
7 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,29 @@
package {
import flash.display.Bitmap;
import flash.geom.Point;
import flash.display.BitmapData;
import flash.geom.Rectangle;
import flash.display.MovieClip;
import flash.filters.BlurFilter;
public class Test extends MovieClip {
public function Test() {
for (var col = 0; col < 10; col += 1) {
for (var row = 0; row < 10; row += 1) {
var image : BitmapData = new Image();
var filter = new BlurFilter(row + col * 0.1, 1, 1);
image.applyFilter(image, new Rectangle(0, 0, 80, 80), new Point(0, 0), filter);
var bm = new Bitmap(image);
bm.smoothing = false;
bm.y = row * 80;
bm.x = col * 80;
addChild(bm);
}
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View File

@ -0,0 +1,7 @@
num_frames = 1
[image_comparison]
tolerance = 5
[player_options]
with_renderer = { optional = false, sample_count = 1, exclude_warp = true }