TypstDocumentation

cmyk

Create a CMYK color.

This is useful if you want to target a specific printer. The conversion to RGB for display preview might differ from how your printer reproduces the color.

Example

#square(
  fill: cmyk(27%, 0%, 3%, 5%)
)
Preview

Parameters
Question mark

cyan
ratioRequiredPositional
Question mark

The cyan component.

magenta
ratioRequiredPositional
Question mark

The magenta component.

yellow
ratioRequiredPositional
Question mark

The yellow component.

key
ratioRequiredPositional
Question mark

The key component.