Page 1 of 1

The names of the ink modes

Posted: Sun Jun 05, 2016 7:27 pm
by Fermin
Hi, please...
Is there some function to get the names of the ink modes (blendClear, blendSrc, blendDst etc...)? Like fontnames() does for the font names.

Re: The names of the ink modes

Posted: Sun Jun 05, 2016 8:29 pm
by [-hh]
Here is the one that I use ;-)

Code: Select all

function myInknames
  return "(Structural Blends" &CR& \
        "blendClear" &CR& \
        "blendSrc" &CR& \
        "blendDst" &CR& \
        "blendSrcOver" &CR& \
        "blendDstOver" &CR& \
        "blendSrcIn" &CR& \
        "blendDstIn" &CR& \
        "blendSrcOut" &CR& \
        "blendDstOut" &CR& \
        "blendSrcAtop" &CR& \
        "blendDstAtop" &CR& \
        "blendXor" &CR& \
        "(Imaging Blends" &CR& \
        "blendPlus" &CR& \
        "blendMultiply" &CR& \
        "blendScreen" &CR& \
        "blendOverlay" &CR& \
        "blendDarken" &CR& \
        "blendLighten" &CR& \
        "blendDodge" &CR& \
        "blendBurn" &CR& \
        "blendHardLight" &CR& \
        "blendSoftLight" &CR& \
        "blendDifference" &CR& \
        "blendExclusion" &CR& \
        "(Bitwise" &CR& \
        "clear" &CR& \
        "noop" &CR& \
        "notSrcAnd" &CR& \
        "notSrcAndReverse" &CR& \
        "notSrcCopy" &CR& \
        "notSrcOr" &CR& \
        "notSrcOrReverse" &CR& \
        "notSrcXor" &CR& \
        "reverse" &CR& \
        "set" &CR& \
        "srcAnd" &CR& \
        "srcAndReverse" &CR& \
        "srcCopy" &CR& \
        "srcOr" &CR& \
        "srcOrReverse" &CR& \
        "srcXor" &CR& \
        "(Arithmetic" &CR& \
        "blend" &CR& \
        "addPin" &CR& \
        "addOver" &CR& \
        "subPin" &CR& \
        "transparent" &CR& \
        "adMin" &CR& \
        "addMax"
end myInknames

Re: The names of the ink modes

Posted: Sun Jun 05, 2016 8:55 pm
by Fermin
Yes, I had it copied from the dictionary but I was surprised there was not a specific function of LiveCode.
Anyway thank you very much, _hh
:)