Old 10-23-2020, 03:41 PM   #1
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default 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);
Could be useful, if you want to render out a hyper-widescreen-cinemascope-western-movie out of Reaper, which must be hyper-widescreen. ^^
__________________
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.
Meo-Ada Mespotine is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:05 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.