The names of the ink modes

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Fermin
Posts: 149
Joined: Fri Jun 05, 2015 10:44 pm

The names of the ink modes

Post by Fermin » Sun Jun 05, 2016 7:27 pm

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.

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: The names of the ink modes

Post by [-hh] » Sun Jun 05, 2016 8:29 pm

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
shiftLock happens

Fermin
Posts: 149
Joined: Fri Jun 05, 2015 10:44 pm

Re: The names of the ink modes

Post by Fermin » Sun Jun 05, 2016 8:55 pm

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
:)

Post Reply