@evio/ffai 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.js +7 -7
- package/package.json +1 -1
package/dist/lib.js
CHANGED
|
@@ -230,15 +230,15 @@ function addSubTitles(inputfile, outputfile, texts, fontfile) {
|
|
|
230
230
|
options: {
|
|
231
231
|
fontfile,
|
|
232
232
|
text: e.text,
|
|
233
|
-
fontsize: 36, //
|
|
233
|
+
fontsize: 36, // 字体大小
|
|
234
234
|
fontcolor: "white", // 文字颜色设置为白色
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
235
|
+
shadowcolor: "black@0.8", // 阴影颜色:黑色,透明度 0.8
|
|
236
|
+
shadowx: 2, // 阴影 X 轴偏移
|
|
237
|
+
shadowy: 2, // 阴影 Y 轴偏移
|
|
238
|
+
borderw: 2, // 文字边框宽度,创建渐变效果
|
|
239
|
+
bordercolor: "black@0.6", // 边框颜色:黑色,透明度 0.6
|
|
240
240
|
x: "(w-text_w)/2", // 水平居中
|
|
241
|
-
y: "(h-text_h-300)", // 底部以上
|
|
241
|
+
y: "(h-text_h-300)", // 底部以上 300 像素的位置
|
|
242
242
|
enable: `between(t,${e.start},${e.end})`,
|
|
243
243
|
},
|
|
244
244
|
};
|