I have created a ZIP file with a bunch of HTML files in it. These files are parameterised and can produce quite complex luminosity masks (see below) for use e.g. in transitions. Just download the ZIP, unzip the HTML, edit to your liking, open in a browser and the PNG file will be downloaded automatically.
It’s great
However, as I am a bit critical, it seems to me that with the “bricks” file there is a small problem with the 3 bricks on the right (set to 8 x 6). They appear in gradient and not in solid color
Brilliant! The HTML file downloads a PNG automatically. @elusien strikes again… knock me down with a feather - how clever.
Straight out of the box I just made this short demo.
I just set each HTML file to 1920 x 1080 pixels. Done in 5 minutes.
PS @elusien, how the £@&% did you design these? I’m in awe!
You don’t actually need to do this, since Shotcut upscales the luminence mask, though with 4K you might see a bit of pixellation with a 960x540 PNG.
If you have a different ratio though, say 4:3, you’d need to put in the correct resolution as otherwise the Shotcut would distort the masks and circles would become ellipses etc.
I was messing around with the GSAP library and realised it would be a great way of creating luminance masks. At first I created animations and saved them to MP4, but then realised for many animations I could just create a PNG file and feed it into thetransition’s “properties” as a “custom” preset. I could also use them with “Mask: From File” filters as well.
Once the “penny had dropped” it was a simple matter of parameterising them.
I got stuck at one point and went on the GSAP forum website to see if anyone could help. Within half an hour one of their developers responded with the solution. It’s good to see other forums as useful as this one.
I see at the top of the html file the use of external scripts. If one day they are modified on their server, it will not work locally?
Shouldn’t they be downloaded and kept locally in the same folder as the html files?
What is the purpose of the “integrity” line
It is possible to download the scripts and include them, however, this would considerably bloat the files. These scripts are well maintained with versioning. It is extremely unlikely that anyone would modify these versions. A new version may become available, but the old version should never be changed. In fact the GSAP library is used by almost 10 million sites - so it should be OK, and in any case the latest version is 3.11.3 and the scripts use an older one, 3.6.0
The integrity attribute allows a browser to check the fetched script to ensure that the code is never loaded if the source has been manipulated. Subresource Integrity (SRI) is a W3C specification that allows web developers to ensure that resources hosted on third-party servers have not been altered. See:
I will change the <script> tag for the GSAP library. It should be: