generate_hex: Generates a default logo for a package.

View source: R/images.R

generate_hexR Documentation

Generates a default logo for a package.

Description

Generates a generic logo for a package. IF the package is not on CRAN, a different set of colors is used.

Usage

generate_hex(
  name,
  output,
  colors = c("#1881C2", "#87B13F"),
  fallback_colors = c("#a60000", "#360000")
)

Arguments

name

The package to generate the logo for.

output

the path to store the generated logo at.

colors

A vector of two valid colors. [1] for the fill and [2] for the outline of the generated logo. Used if the package exists on CRAN.

fallback_colors

A vector of two valid colors. [1] for the fill and [2] for the outline of the generated logo. Used if the package does not exist on CRAN.

Value

The path to the generated logo image.


hexFinder documentation built on Feb. 16, 2023, 8:11 p.m.