tylermorganwall / rayimage

Uses convolution-based techniques to generate simulated camera bokeh, depth of field, and other camera effects, using an image and an optional depth map. Includes functions to perform 2D convolutions, add image overlays, generate camera vignette effects, and add titles to images.
https://www.rayimage.dev
50 stars 4 forks source link

Title Bar not relocated by `add_title(.., title_position)`? #3

Closed psychemedia closed 3 years ago

psychemedia commented 3 years ago

If I use the title_position argument to rayshader::add_title() (for example, title_position='south') when constructing arayshaderimage, the text label is relocated but thetitle_bar` seems to be stuck in place at the top of the image rather than also being relocated so it continues to sit behind the title?

Speaking as a user (rather than an R developer, which I'm not!), a couple of other things I have noticed in terms of function usability that could make add_title() more powerful, eg for overlaying "TV style" transparent graphics:

psychemedia commented 3 years ago

I also note that if I have a title over several lines (eg title_text="Title\nSubtitle") the size of the title bar does not expand and the text overflows into the area below the title bar.

tylermorganwall commented 3 years ago

The latest version should fix this issue, and you can also now specify the width of the title bar yourself (which should allow you to fit your multi-line titles). As for the other items, I'd recommend opening feature request issues for each request (which makes them more manageable from my POV).