10-23-2020, 03:41 PM | #1 |
Human being with feelings
Join Date: May 2017
Location: Leipzig
Posts: 6,621
|
Preset: Borders around your video
I needed this so I coded this quickly:
a preset, which allows you to have a colored border around your video. Code:
// Draw a colored border around the edges of the window // Meo-Ada Mespotine 24.October 2020 // licensed under MIT-license //@param1:Top 'Top Border' 0 0 2000 //@param2:Bottom 'Bottom Border' 0 0 2000 //@param3:Left 'Left Border' 0 0 2000 //@param4:Right 'Right Border' 0 0 2000 //@param6:XOffset 'X-Borderoffset' 0 -2000 2000 //@param7:YOffset 'Y-Borderoffset' 0 -2000 2000 //@param9:R 'Red' 0 0 1 0 0.01 //@param10:G 'Green' 0 0 1 0 0.01 //@param11:B 'Blue' 0 0 1 0 0.01 gfx_set(r,g,b); gfx_blit(0); gfx_fillrect(0,0,project_w,Top+YOffset); gfx_fillrect(0,project_h-Bottom+YOffset,project_w,project_h); gfx_fillrect(0,0,Left+XOffset,project_h); gfx_fillrect(project_w-Right+YOffset,0,project_w,project_h);
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish On vacation for the time being... Last edited by Meo-Ada Mespotine; 10-23-2020 at 04:56 PM. |
Thread Tools | |
Display Modes | |
|
|