Refering to INKs by using numbers?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 9287
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Refering to INKs by using numbers?
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?
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.
-
- Livecode Opensource Backer
- Posts: 9287
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
-
- VIP Livecode Opensource Backer
- Posts: 9802
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Refering to INKs by using numbers?
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 9287
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Refering to INKs by using numbers?
They wouldn't; but that is not the point of my question.How would numbers provide more mnemonic value?
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.
-
- VIP Livecode Opensource Backer
- Posts: 9802
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Refering to INKs by using numbers?
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?
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Livecode Opensource Backer
- Posts: 9287
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Refering to INKs by using numbers?
A number might be better if one wanted to cycle through all the modes
automatically.
http://ssp.impulsetrain.com/porterduff.html
automatically.
http://ssp.impulsetrain.com/porterduff.html
Re: Refering to INKs by using numbers?
you could put all the modes in an array and cycle through the array...A number might be better if one wanted to cycle through all the modes
automatically.
Regards,
Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
-
- VIP Livecode Opensource Backer
- Posts: 9802
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Refering to INKs by using numbers?
How often does anyone do that LiveCode?richmond62 wrote: ↑Mon Mar 25, 2019 10:29 amA number might be better if one wanted to cycle through all the modes
automatically.
http://ssp.impulsetrain.com/porterduff.html
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 1
- Joined: Sat Nov 14, 2020 9:08 pm
Re: Refering to INKs by using numbers?
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.
-
- VIP Livecode Opensource Backer
- Posts: 9802
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Refering to INKs by using numbers?
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn