mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Added return type to methods of colors in docs (#291)
This commit is contained in:
parent
6545620891
commit
25e8520a4e
@ -153,16 +153,20 @@ Lightens a color.
|
|||||||
|
|
||||||
- amount: ratio (positional, required)
|
- amount: ratio (positional, required)
|
||||||
The factor to lighten the color by.
|
The factor to lighten the color by.
|
||||||
|
- returns: color
|
||||||
|
|
||||||
### darken()
|
### darken()
|
||||||
Darkens a color.
|
Darkens a color.
|
||||||
|
|
||||||
- amount: ratio (positional, required)
|
- amount: ratio (positional, required)
|
||||||
The factor to darken the color by.
|
The factor to darken the color by.
|
||||||
|
- returns: color
|
||||||
|
|
||||||
### negate()
|
### negate()
|
||||||
Produces the negative of the color.
|
Produces the negative of the color.
|
||||||
|
|
||||||
|
- returns: color
|
||||||
|
|
||||||
# Symbol
|
# Symbol
|
||||||
A Unicode symbol.
|
A Unicode symbol.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user