![]() If used with the optional ' RadiusY', this will represent the radius on the X-axis. RadiusX (optional): Radius of the corners of rounded rectangles.Height (required): Height of the shape.Y (required): Y coordinate of the shape relative to the meter.X (required): X coordinate of the shape relative to the meter.Shape Types Rectangle Parameters: X, Y, Width, Height, RadiusX, RadiusY Multiple shapes are drawn in the numerical order of the Shape N, so in the case of overlap, higher numbered shapes will be drawn on top / in front of lower numbered shapes. There can be from one to a reasonably unlimited number of shapes in a single Shape meter. It will define the Shape Type and its definition parameters, and any Attribute and Transform modifiers for the shape(s) to be drawn. This is the only Shape meter specific option used. Options General meter optionsĪll general meter options are valid. A line drawn from pixel 0 to pixel 100 will be drawn on pixels 0 through 99, and be 100 pixels in length. The line is drawn up to the points defined by EndX and EndY. Note: The EndX and EndY parameters in the Line shape, as well as in the Arc and Curve shapes, and the LineTo, ArcTo, CurveTo parameters in the Path shape, are not inclusive. MySharedModifiers=Fill Color 0, 0, 0, 255 | StrokeWidth 4 | Stroke Color 255, 255, 255, 255 Shape2=Rectangle 20, 10, 50, 50 | Extend MySharedModifiers Shape=Rectangle 0, 0, 100, 50 | Extend MySharedModifiers Then you add that named identifier as a separate option on the meter, and in it put any modifiers you want to share. The way this works is that you use the keyword Extend, followed by one or more named identifiers. If you have more than one shape defined in the meter, you may want them to share some or all modifiers, rather than repeating them in each Shape N option. Shapes in a meter can also be Combined, which will allow you to merge two or more separate shapes in a variety of ways. This example adds "Use a solid black fill color in the shape, change the width of the drawing stroke to 4 pixels, and color the stroke white." All modifiers are optional, and they can be in any order in the option, after the shape definition. Modifiers are added on the Shape N option by defining them separated by the pipe | character. You can then add Attribute and Transform modifiers to each shape, which can control things like Fill Color, StrokeWidth, Rotate, Scale, and much more. In this example we are saying "Create a rectangle, starting at an X of 0 and a Y of 0 relative to the meter, with a width of 100, and a height of 50." This is the most basic example of the meter, and will create a 100 X 50 rectangle with a default white fill color and a default 1 pixel black drawing stroke. You first define the type of Shape, the relative starting position in the meter, and required and optional shape definition parameters. The meter will consist of one or more N objects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |