The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraffle General (http://forums.omnigroup.com/forumdisplay.php?f=10)
-   -   Documentation about Custom shapes (http://forums.omnigroup.com/showthread.php?t=20719)

Simon Knight 2011-04-15 12:33 AM

Documentation about Custom shapes
 
I am interested in creating some custom shapes and found this code posted by Chris:

[CODE]{
shapes = (
{
InspectorGroup = 1.5;
ShapeName = "OpenBox";
FillPath = {
elements = (
{element = MOVETO; point = "{-0.5, -0.5}"; },
{element = LINETO; point = "{0.5, -0.5}"; },
{element = LINETO; point = "{0.5, 0.5}"; },
{element = LINETO; point = "{-0.5, 0.5}"; },
{element = CLOSE; }
);
};
StrokePath = {
elements = (
{element = MOVETO; point = "{-0.5, -0.5}"; },
{element = LINETO; point = "{-0.5, 0.5}"; },
{element = LINETO; point = "{0.5, 0.5}"; },
{element = LINETO; point = "{0.5, -0.5}"; }
);
};
}
);
}[/CODE]

Can someone direct me to any documentation that describes which commands are available i.e. in addition to LineTo and MoveTo. For example is it possible to draw a box with two solid lines and two dashed?

best wishes
Simon


All times are GMT -8. The time now is 02:48 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.