![]() ![]() Anchor is the point around which the Shape rotates. The easiest case of using anchor is with rotation. Once you move it away from its initial position, it will be visible when the Shape is selected. To reveal it, expand Inspector section for Transform. Initial position of anchor is in top-left corner of a Shape (or bottom-left for macOS target) and it’s hidden by default. In PaintCode, it’s the green cross with circle. All 3 require a fixed point called anchor. Transform is typically a name for three different operations: rotation, scale, offset. Curvature is controlled using virtual points.īeziers will have a dedicated post about their properties and editing tips. Lines connecting vertices can be straight or curved. Size of the inner circle is defined in proportion to the outer circle.īezier is fully editable shape, which means all vertices can be positioned independently. When bounding box is resized, Polygon is stretched, so its vertices lie on ellipse inscribed in the bounding box.ĭraws regular shape that has given number of spikes – imagine a star. Simplest polygons are triangle and square, but more common are pentagon or hexagon.Ĭenter of Polygon matches center of bounding box, but its vertices may not always reach to sides of the bounding box. This kind of Shape can also represent a segment of ellipse, by specifying Start Angle and End Angle attributes.Įllipse segment can be open or closed, there is a checkbox for that.ĭraws a regular shape with given number of sides. ![]() That button creates a Rectangle with no Fill, no Stroke, with only initial text content.ĭraws an ellipse that touches center of every side of its bounding box.Įllipse with equal width and height is a circle. It supports rounded corners and you can even pick which corners should be rounded and which stay sharp.Īlthough there is a dedicated Toolbar button for Text, it’s not really a special kind of Shape. Simplest of all shapes, it basically fills its bounding box. However, in more complex cases, also Rotation, Offset and Scale affect the bounding box. Some parts of the Shape may stay transparent and some drawing effects may exceed the bounding box.īounding box is usually defined using X, Y, Width and Height attributes. New Shape is created using toolbar buttons or Touch Bar.Įvery Shape has its bounding box, which defines primary area the Shape will cover. In this post I will focus on fundamental property of Shapes – their shape. They encapsulate visual attributes, allow easy manipulation, and are composed together to achieve complex graphical results. The basic abstraction in graphic editors are layers, in PaintCode we call them Shapes. This post is a part of series PaintCode Power User. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |