Skip to content

Color matrix entries #4202

Answered by TS60
psads-git asked this question in Q&A
Discussion options

You must be logged in to vote

It's not possible in math mode and not possible without hacks in text mode, I think.

#math.mat(
  table(
    stroke: none,
    columns: (10pt, 10pt, 10pt),
    inset: 3pt,
    align: center,
    fill: (x, y) =>
    if x <= 1 and y <= 1 { luma(240) }
    else { none },
    [1],
    [2],
    [3],
    [4],
    [5],
    [6],
    [7],
    [8],
    [9],
  )
)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by psads-git
Comment options

You must be logged in to vote
0 replies
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