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
ratio
RequiredPositional
Question mark

The cyan component.

magenta
ratio
RequiredPositional
Question mark

The magenta component.

yellow
ratio
RequiredPositional
Question mark

The yellow component.

key
ratio
RequiredPositional
Question mark

The key component.