tests: Add a visual test for fractional blur strength
This commit is contained in:
parent
9c661a14c3
commit
7fe1c71257
|
@ -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 |
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,7 @@
|
|||
num_frames = 1
|
||||
|
||||
[image_comparison]
|
||||
tolerance = 5
|
||||
|
||||
[player_options]
|
||||
with_renderer = { optional = false, sample_count = 1, exclude_warp = true }
|
Loading…
Reference in New Issue