Overview
Creates a star shape. Star class inherits Shape and Display class, therefore all the methods defined in Shape and Display classes can also be used in the Star object.
Syntax
• radius - (required) the radius of the outer tangent circle
• option - (optional) table containing parameters
option = {
ratio = n, --(default = 0.5) ratio (= inner circle radius ➗ outer circle radius)
points = n, --(default = 5) number of vertexts
strokeWidth = n, -- (default = 0) width of stroke
strokeColor = color, -- (default = Color.WHITE) stroke color
fill = color, -- (default = Color(Color.WHITE,1)) color and alpha for fill
}
Note that the initial anchor point is the center of the star.
댓글 없음:
댓글 쓰기