justin = {
main feed
,
music
,
code
= {
cockos
,
reaper
,
wdl
,
ninjam
,
jsfx
,
more
}
,
askjf
,
pubkey
};
Ask Justin Frankel
No reasonable question unanswered since 2009!
Suggested topics: programming, music, sleep, coffee, etc.
Note: please do not ask questions about REAPER features, bugs or scheduling, use the
forums
instead.
Name:
Ask:
Human (enter yes):
[
back to index
] | [
unreplied
] | [
replied
] | [
recent comments
] | [
all
]
Question:
thanks. worked a treat. Sorry if it's a basic Q, but could you explain the Lice blit modes or point to a site that does?
Asked by olilarkin (144.32.156.x) on July 2 2012, 10:25am
Reply on July 2 2012, 2:25pm:
Sure, I guess this should be in lice.h but isn't (note if alpha is non-1.0, it changes things too). The actual logic for these is in lice_combine.h.
LICE_BLIT_MODE_COPY: copies input to output -- if alpha is not 1.0, mixes accordingly
LICE_BLIT_MODE_ADD: sums input and output -- if alpha is not 1.0, output + alpha*input is used, so for subtraction you can use ADD with alpha of -1.0.
LICE_BLIT_MODE_DODGE: output = output/(1.0-input), more or less
LICE_BLIT_MODE_MUL: output = output*input
LICE_BLIT_MODE_OVERLAY and LICE_BLIT_MODE_HSVADJ: ok I need to go get coffee now. fail.
Comment:
Your Name:
-- Site Owner's Name:
(for human-verification) Comment:
[
back to index
] | [
unreplied
] | [
replied
] | [
recent comments
] | [
all
]
Copyright 2025 Justin Frankel
.
|
RSS