image_canvas_hex: Make your own hex sticker

View source: R/oxy-canvas.R

image_canvas_hexR Documentation

Make your own hex sticker

Description

Produces canvas and border for assembling hex sticker

Usage

image_canvas_hex(
  border_color = "black",
  border_size = 2,
  fill_color = "azure",
  outer_margin = "10x10",
  scope = FALSE,
  scope_color = "grey80"
)

image_canvas_hexborder(
  border_color = "black",
  border_size = 2,
  outer_margin = "10x10"
)

Arguments

border_color

color of the hex border. Default: 'black'

border_size

border thickness. Default: 2

fill_color

hex background. Default: 'azure'

outer_margin

margin around the hex. May be helpful for making sure nothing gets trimmed. Default: '10x10'

scope

logical. Add measurement grid to the center of the hex (similar to rifle scope).

scope_color

color of the grid. Default "grey80".

Details

Border around the sticker can be later trimmed either by the printing company or by 'magick::image_trim()'. It is preferred to not choose white background or white border to prevent excessive trimming. Requires 'ggplot' and 'ggforce' installed. 'image_canvas_hexborder()' produces transparent hex with specified border color.

Value

image of hex canvas

See Also

transform,color,attributes,painting

Examples

## Not run: 
if(interactive()){
 image_canvas_hex()
 }

## End(Not run)

dmi3kno/bunny documentation built on Dec. 7, 2022, 7:22 p.m.