title_background: Create background for title page

Description Usage Arguments Value

View source: R/title_background.R

Description

Create background for title page

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
title_background(
  hex_path = system.file("app", "www", "img", package = "highlights.shiny"),
  background_path = system.file("app", "www", "source_img", package =
    "highlights.shiny"),
  background_file = "sky.jpg",
  sticker_width = 200,
  sticker_row_size = 4,
  hex_scale_pct_width = 50,
  hex_scale_pct_height = NULL,
  hex_offset_vec = c(500, 200),
  background_scale_pct_width = 100,
  background_scale_pct_height = NULL,
  background_offset_vec = c(100, 300),
  brightness = 400,
  saturation = 200,
  hue = 100,
  radius = 10,
  sigma = 5,
  canvas_color = "white",
  export_image = FALSE
)

Arguments

hex_path

directory for where hex png files are stored

background_file

image file for background of slide. If NULL, no background image file will be used.

sticker_width

width of each sticker (in pixels)

sticker_row_size

number of rows for the stickers. Default is 5.

brightness

brightness of background supplied to magick::image_modulate

saturation

saturation of background supplied to magick::image_modulate

hue

hue of background supplied to magick::image_modulate

radius

radius of background blur supplied to magick::image_blur

sigma

sigma of background blur supplied to image_blur

Value

image produced by magick::image_composite


rpodcast/highlights.shiny documentation built on Feb. 1, 2020, 2:20 p.m.