Skip to content
","upvoteCount":3,"url":"https://github.com/cetz-package/cetz/discussions/630#discussioncomment-9874077"}}}

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 2 replies

Comment options

You must be logged in to vote
2 replies
@noahjutz
Comment options

@fenjalien
Comment options

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
4 participants