colorize ( index palette transparent-index/f -- seq )


Vocabulary
images.gif

Inputs
indexan object
palettean object
transparent-index/fan object


Outputs
seqan object


Definition


: colorize ( index palette transparent-index/f -- seq )
pick = [ 2drop B{ 0 0 0 0 } ] [ nth 255 suffix ] if ;