D2:stroke
CSS color name, hex code, or a subset of CSS gradient strings.
code:stroke.d2
direction: right
x -> y: hi {
style: {
# All CSS color names are valid
stroke: orangered
}
}
# We need quotes for hex otherwise it gets interpreted as comment
x.style.stroke: "linear-gradient(to right,orange, red)"
y.style.stroke: "linear-gradient(to top,orange, red)"
うーん
[https://d2.lucas.tools/?script=jI_BSgNBEETv8xVFclFI8gF7EMRPyMHzsFPuNM52x55Wd5H8u7jBiydvTVOPV1XEOYaYDnCZaqQFxwesA6rgKwE91sZhO4E9HlvD0_mM0Zo5NM_syE585CZly_Rwe-UA86wTnT_fa7qmPZ4JJQve3i3Y8WKOygUWlf4pnZDAxOgQDfrFGSzIHaPNMzXSctrKnH4NuybK7MfJcxFq3IXdNhxu7gOc5X6X1n9wYZc_1HcAAAD__w%3D%3D&#.svg]