Package 'KnudsenKit'

Title: Utilities Knudsen Uses
Description: So far a single function for generating 7-segment graphics This should be the next line.
Authors: Christian B. Knudsen
Maintainer: Christian B. Knudsen <[email protected]>
License: GPL (>= 3)
Version: 0.1.0
Built: 2025-03-08 03:14:56 UTC
Source: https://github.com/chrbknudsen/KnudsenKit

Help Index


my_function

Description

A that returns a seven-segment display as an SVG

Usage

segment7(
  value = 8,
  dp = FALSE,
  color = "#00FF00",
  stroke = "#004D00",
  background = "#000000",
  height = 320
)

Arguments

value

A single digit (0-9) to be displayed. Defaults to 8.

dp

A boolean indicating whether to display the decimal point. Defaults to FALSE

color

The color of the active segments. Specifieds as a hex code. Defaults to "#00FF00".

stroke

The color of the stroke around the segments. Specified as a hex code. Defaults to "#004D00".

background

The background color of the SVG. Specified as a hex code. Defaults to "#000000".

height

The height of the SVG in pixels. Defaults to 320.

Value

A character string containing the SVG representation of the seven-segment display.

Examples

segment7(value = 3, dp = TRUE,
    color = "#FF0000", stroke = "#000000", background = "#FFFFFF",
    height = 200)