Handbook
Glossary
linear-gradient ( color1 color2 percent -- color )
Vocabulary
colors
.
mix
Inputs
color1
an
object
color2
an
object
percent
an
object
Outputs
color
an
object
Definition
USING:
colors
kernel
math
;
IN:
colors.mix
:
linear-gradient
( color1 color2 percent -- color )
[
1.0
swap
-
*
]
[
*
]
bi-curry
swapd
[
[
>rgba-components
drop
]
[
tri@
]
bi*
]
2bi@
[
+
]
tri-curry@
tri*
1.0
<rgba>
;