User avatar
ajstarks
Posts: 129
Joined: Fri Jun 22, 2012 2:14 am

splash - a tool to make splash screens

Thu Dec 10, 2015 2:08 am

As suggested by Mike Kazantsev, The OpenVG library now includes "splash" a small utility to make "splash screens".

Here is the usage:

usage: splash [ flags ] image-path

Set specified image as an overlay screen via OpenVG lib.
Default is to put this image to the center.

-bg string
Background color (named color or rgb(r,g,b)). (default "black")
-fg string
text color (named color or rgb(r,g,b)). (default "white")
-fp float
fontsize % (default 2)
-resize
Resize image to fit the screen.
-t string
text annotation
-ty float
text y %


The simplest use is:


splash foo.jpg


which will put foo.jpg on the screen on a black ground. Enter ^C to remove the image.

User avatar
rpdom
Posts: 15592
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: splash - a tool to make splash screens

Thu Dec 10, 2015 6:07 am

Can this utility display a jpeg in a specified position and fixed size on the screen? If so, I have a use for it. How do I get it?

Ah, I don't want to have to press anything to get rid of it, I want to be able to remove it from software - but I guess I can run it as a background task and send it the appropriate kill signal to emulate Ctrl-C.

User avatar
ajstarks
Posts: 129
Joined: Fri Jun 22, 2012 2:14 am

Re: splash - a tool to make splash screens

Fri Dec 11, 2015 12:07 am

Currently the source is at: https://github.com/ajstarks/openvg/blob ... /splash.go (I can do a C version if there is demand). And yes, it can be built to place it anywhere (probably with a command line flag).

User avatar
ajstarks
Posts: 129
Joined: Fri Jun 22, 2012 2:14 am

Re: splash - a tool to make splash screens

Fri Dec 11, 2015 1:28 am

Just updated to allow arbitrary positioning.

Return to “OpenVG”