Skip to content

How to use the show rule to set the color of all Cetz object? #630

Answered by jneug
tapyu asked this question in Q&A
Discussion options

You must be logged in to vote

Dou don't use #show here, but rather the cetz function set-style:

#cetz.canvas({
  import cetz.draw: *

  set-style(
    fill: red,
    stroke: red
  )

  line((0,0), (5,0))
  circle((), radius:1)
})

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tapyu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants