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 |
A that returns a seven-segment display as an SVG
segment7( value = 8, dp = FALSE, color = "#00FF00", stroke = "#004D00", background = "#000000", height = 320 )
segment7( value = 8, dp = FALSE, color = "#00FF00", stroke = "#004D00", background = "#000000", height = 320 )
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. |
A character string containing the SVG representation of the seven-segment display.
segment7(value = 3, dp = TRUE, color = "#FF0000", stroke = "#000000", background = "#FFFFFF", height = 200)
segment7(value = 3, dp = TRUE, color = "#FF0000", stroke = "#000000", background = "#FFFFFF", height = 200)