My algorithm works well. It's fast (15-20 microseconds). Yours doesn't work correctly. Are you suggesting that I should remake my algorithm by your example?)
That's it, Peter, you're boring me with your impenetrability.
As it generates all the algorithms given here in two lines. It is the fastest, as there is only one "+" operation in the loop, not even multiplication. Also this fuction gives blends of any two colours, not just calculates shades of one.
Yes, but personally I'm unlikely to use it, as I'm stingy with generating an intermediate array of several KB for dynamic gradient. For static one it's certainly useful. But I have mostly dynamic ones and calculate gradient on the fly without arrays.
Anyway, Andrei Hatimlansky was right. Pyotr has been scamming me for time like a sucker.
as it generates all the algorithms given here in two lines. It is the fastest, as there is only one "+" operation in the loop, not even multiplication. Also this fuction gives blends of any two colours, not just calculates shades of one.
Very possible... Colours, melodies and sounds... Current quotes and their changes, by the way, sound pretty good!
What do they look like in colour? And what would it be - colour harmony or cacophony?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
My algorithm works well. It's fast (15-20 microseconds). Yours doesn't work correctly. Are you suggesting that I should remake my algorithm by your example?)
That's it, Peter, you're boring me with your impenetrability.
I can't take it anymore.
I win. Your algorithm is perfect!
That's it, Peter, you're boring me with your impenetrability.
I can't take it anymore.
I win. Your algorithm is perfect!
Mine's not perfect. It's just more correct.
The moral of this fable is: neither syntax, nor language, nor style, nor compliance with standards rules! The developer rules.
Mine is not perfect. It's just more faithful.
OK your section in rgb space is more straightforward than mine.
Okay. The topic was interesting and useful.
The people were speechless...
You bet. I'm the only one who's fooled.
Come on... A useful function was born:
Forum on trading, automated trading systems and trading strategy testing
Colour decomposition function.
Nikolai Semko, 2018.10.15 22:21
...
Here is the only necessary and more versatile function to work with gradient:
As it generates all the algorithms given here in two lines. It is the fastest, as there is only one "+" operation in the loop, not even multiplication. Also this fuction gives blends of any two colours, not just calculates shades of one.
Come on... A useful function was born:
Come on... A useful function was born:
Very possible... Colours, melodies and sounds... Current quotes and their changes, by the way, sound pretty good!
What do they look like in colour? And what would it be - colour harmony or cacophony?
Very possibly... Colours, melodies and sounds... Current quotations and their changes, by the way, sound very good!
And what do they look like in colour? And what would it be - colour harmony or cacophony?
You gave Peter an idea. Let's see what kind of 'Petrophonia' it will be.