This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getScalePadFilters(width, height, aspect, color) { | |
/* | |
let a be the input aspect ratio, A be the requested aspect ratio | |
if a > A, padding is done on top and bottom | |
if a < A, padding is done on left and right | |
*/ | |
return [ | |
/* |
NewerOlder