terrastruct / d2

D2 is a modern diagram scripting language that turns text to diagrams.
https://d2lang.com
Mozilla Public License 2.0
17.52k stars 430 forks source link

connection gradients #2121

Open alixander opened 1 month ago

alixander commented 1 month ago

i didn't do that as part of gradient work in https://github.com/terrastruct/d2/pull/2120

gauging demand before implementing

bo-ku-ra commented 1 month ago

can i also use 'transparent'?

alixander commented 1 month ago

yeah that should be a valid value now

bo-ku-ra commented 1 month ago

I want to do that with 'theme-overrides'.

vars: {
  d2-config: {
    theme-overrides: {
      B4:  "linear-gradient(red, blue)"
    }
  }
}
bo-ku-ra commented 1 month ago

include arrowheads. image

image

bo-ku-ra commented 1 month ago

https://github.com/terrastruct/d2/issues/2121#issuecomment-2381259450

'B1' and 'B2' are connections.