Handbook
Glossary
gradient-vertices ( direction dim colors -- seq )
Vocabulary
ui
.
pens
.
gradient
.
private
Inputs
direction
an
object
dim
an
object
colors
an
object
Outputs
seq
an
object
Definition
USING:
alien.c-types
alien.data
arrays
kernel
math
math.vectors
sequences
;
IN:
ui.pens.gradient.private
::
gradient-vertices
( direction dim colors -- seq )
direction dim
v*
dim
over
v-
swap
colors
length
[
<iota>
]
[
1
-
]
bi
v/n
[
v*n
]
with
map
swap
[
over
v+
2array
]
curry
map
concat
concat
float
>c-array
;