TypstDocumentation

luma

Create a grayscale color.

Example

#for x in range(250, step: 50) {
  square(fill: luma(x))
}
Preview

Parameters
Question mark

gray
integerratioRequiredPositional
Question mark

The gray component.