Hello,
I'm not an expert of this topic, but some infos I have found :
- The points use a "coords" attribute, not "pos".
- A curve seems to only describe a y=f(x) described function, which means that the points should be sorted from lowest to highest x-coordinate and no pair of points can share the same x-coordinate.
- The style attribute seems to have an effect only on the curve width :
* If left empty, width is described in Ml units.
* If set to "thin", width is described in pixels.
* I have seen someone saying the style can be set to "surface", this is correct but the internal logic of this style is broken.
- You can have multiple curves on the same graph, each with their own color, style, etc...
You can also manipulate a graph and its curves using Maniascript, check the
CMlGraph and the
CMlGraphCurve API.
Here is a bit of Manialink I made to check these infos, you can copy it to test it yourself.
Code: Select all
<graph size="50 50" min="0 0" max="10 10">
<curve color="00f" width="1" style="thin">
<point coords="0 0" />
<point coords="10 10" />
</curve>
<curve color="f00" width="1">
<point coords="0 10" />
<point coords="5 0" />
<point coords="10 10" />
</curve>
</graph>
And attached the resulting curves in my Interface Designer.