male_polygon: Creates a male silhouette image, partially filled with a...

Description Usage Arguments Note Author(s) Examples

View source: R/poly_fill.R

Description

Creates a male silhouette image, partially filled with a color. Returns a list containgin a character vector of an 'img' block that can be embedded into HTML output and the SVG text.

Usage

1
2
male_polygon(fillPercentage, fillColor = "#3a9fbf",
  emptyColor = "#D9D9D9", size = "128px", includePercentLabel = T)

Arguments

fillPercentage

An integer. How much to fill the polygon.

fillColor

A character vector. The color to fill it with. Can be any valid SVG color value (e.g., "#FF0000", "red"). Default is light blue.

emptyColor

A character vector. The background color of the polygon, indicating the portion of it that is "empty.'

size

A character vector. The size of the SVG output. Can be any valid HTML size argument (e.g., "64px" or "50%").

includePercentLabel

A logical. Whether to include a label in the top left corner showing the percent that the polygon if filled.

Note

Based on SVG from https://openclipart.org/detail/249447/male-symbol-silhouette.

Author(s)

Blake Madden

Examples

1
male_polygon(50, "green", "256px")

Blake-Madden/polyfillR documentation built on March 3, 2021, 12:29 a.m.