Download MetaTrader 5

Vector Graphics Library port to MQL, help needed!

To add comments, please log in or register
Use searching on MQL5.community. It is easy!
dck
70
dck 2012.07.20 10:53 

Since the availability of CCanvas it is time for a Vector library. To do so, I tried to port parts of paperjs.org (The Swiss Army Knife of Vector Graphics Scripting) to MQL.

Help is needed cause I can't fix the remaining issues myself.
I guess that there will be an official library provided soon, and there is already the Controlls/Rect.mqh (faar too simple - but a start).

Here is the Coordinate.mqh struct (place it in the Include folder) and a CoordinateTest.mq5 script(place it in Scripts folder)

Run the  CoordinateTest on any chart, the script tests all the methods and some results are not as expected (errors with line numbers are printed).

I don't know why it's not working - maybe you can help me.

regards Daniel 

Files:
To add comments, please log in or register