Display a Rotating Flower Visualization
Usage
flower(
petalCount = 6,
petalLength = 100,
petalWidth = 60,
petalColor = "lightpink",
petalStroke = "deeppink",
centerRadius = 20,
centerColor = "gold",
centerStroke = "darkorange",
centerText = NULL,
centerTextSize = 16,
centerTextColor = "black",
font = "Verdana, Geneva, Tahoma, sans-serif",
bgcol = "white",
rotationSpeed = 2,
width = NULL,
height = NULL
)Arguments
- petalCount
The number of petals. Defaults to 6.
- petalLength
The length of each petal. Defaults to 100.
- petalWidth
The width of each petal. Defaults to 60.
- petalColor
The fill color of the petals. Defaults to "lightpink".
- petalStroke
The stroke color of the petals. Defaults to "deeppink".
- centerRadius
The radius of the flower's center circle. Defaults to 20.
- centerColor
The fill color of the center. Defaults to "gold".
- centerStroke
The stroke color of the center. Defaults to "darkorange".
- centerText
Optional. Text to display inside the center (e.g., a number or emoji).
- centerTextSize
The size of the center text. Defaults to 16.
- centerTextColor
The color of the center text. Defaults to "black".
- font
The font family for the center text. Defaults to "Verdana, Geneva, Tahoma, sans-serif".
- bgcol
The background color of the visualization. Defaults to "white".
- rotationSpeed
The speed of rotation (degrees per animation frame). Defaults to 2.
- width
The width of the SVG output. Optional.
- height
The height of the SVG output. Optional.