Display a Rotating Flower Visualization
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
)
The number of petals. Defaults to 6.
The length of each petal. Defaults to 100.
The width of each petal. Defaults to 60.
The fill color of the petals. Defaults to "lightpink".
The stroke color of the petals. Defaults to "deeppink".
The radius of the flower's center circle. Defaults to 20.
The fill color of the center. Defaults to "gold".
The stroke color of the center. Defaults to "darkorange".
Optional. Text to display inside the center (e.g., a number or emoji).
The size of the center text. Defaults to 16.
The color of the center text. Defaults to "black".
The font family for the center text. Defaults to "Verdana, Geneva, Tahoma, sans-serif".
The background color of the visualization. Defaults to "white".
The speed of rotation (degrees per animation frame). Defaults to 2.
The width of the SVG output. Optional.
The height of the SVG output. Optional.
An animated rotating flower SVG.
flower(
petalCount = 5,
petalColor = "plum",
centerText = "🌼",
rotationSpeed = 1.5
)