Refering to INKs by using numbers?

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: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10430
Joined: Fri Feb 19, 2010 10:17 am

Refering to INKs by using numbers?

Post by richmond62 »

I wonder if there is a way to refer to INKs by using numbers rather than
those seemingly whacked-out names such as blendSrc and blendBurn?

Possibly transfer modes?
Last edited by richmond62 on Sun Mar 24, 2019 10:19 pm, edited 1 time in total.
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10105
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Refering to INKs by using numbers?

Post by FourthWorld »

How would numbers provide more mnemonic value?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10430
Joined: Fri Feb 19, 2010 10:17 am

Re: Refering to INKs by using numbers?

Post by richmond62 »

How would numbers provide more mnemonic value?
They wouldn't; but that is not the point of my question.

I have no objection what-so-ever to people using those whacked-out
names should they choose to.

If, however, one could refer to them with numbers as well, it might prove
useful in certain situations.
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10105
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Refering to INKs by using numbers?

Post by FourthWorld »

They seem almost equally forgettable to me, but perhaps the current constants a bit better, since their names are at least consistent with some OS (and perhaps Skia) graphics correlaries. And once in a while they're even consistent with the bitwise operators in LC (well, XOR, maybe others).

Under what circumstances would a number be better?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10430
Joined: Fri Feb 19, 2010 10:17 am

Re: Refering to INKs by using numbers?

Post by richmond62 »

A number might be better if one wanted to cycle through all the modes
automatically.

http://ssp.impulsetrain.com/porterduff.html
Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: Refering to INKs by using numbers?

Post by Thierry »

A number might be better if one wanted to cycle through all the modes
automatically.
you could put all the modes in an array and cycle through the array...

Regards,

Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10105
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Refering to INKs by using numbers?

Post by FourthWorld »

richmond62 wrote: Mon Mar 25, 2019 10:29 am A number might be better if one wanted to cycle through all the modes
automatically.

http://ssp.impulsetrain.com/porterduff.html
How often does anyone do that LiveCode?

I'm with Terry on this. Clumsy as the names are, they refer to the underlying well-known algorithms. Those classic names rarely have mnemonic value to lay people, but even if known by only a few it's more than the zero who would come to LC with knowledge of an arbitrary integer sequence.

And if someone did need to step through them, as Terry notes we walk through string lists all the time, easily solvable with what we have in hand right now.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Maverick90
Posts: 1
Joined: Sat Nov 14, 2020 9:08 pm

Re: Refering to INKs by using numbers?

Post by Maverick90 »

One year later, I believe there is no point in starting to refer to INK's by using numbers. Yes, using whacked-out names such as blendSrc and blendBurn might not be the best thing, but as long as there was no direct negative consequence to using these names, I think we should keep them. Numbers are involved in every activity one can be involved in, so if you feel the need to use numbers, there are plenty of activities and fields where you can involve numbers.
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10105
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Refering to INKs by using numbers?

Post by FourthWorld »

How did you find this ancient thread, Maverick90?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Post Reply