Class Kinetic.RegularPolygon
Extends
Kinetic.Shape.
Defined in: kinetic.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Kinetic.RegularPolygon(config)
RegularPolygon constructor.
|
Method Attributes | Method Name and Description |
---|---|
get radius
|
|
getSides()
get number of sides
|
|
setRadius(radius)
set radius
|
|
setSides(sides)
set number of sides
|
- Methods borrowed from class Kinetic.Shape:
- applyLineJoin, clearData, fillStroke, getCanvas, getContext, getFill, getLineJoin, getStroke, getStrokeWidth, intersects, saveData, setDrawFunc, setFill, setLineJoin, setStroke, setStrokeWidth, stroke
- Methods borrowed from class Kinetic.Node:
- draggable, getAbsoluteAlpha, getAbsolutePosition, getAbsoluteTransform, getAbsoluteZIndex, getAlpha, getAttrs, getCenterOffset, getDetectionType, getDragBounds, getDragConstraint, getLayer, getLevel, getName, getParent, getPosition, getRotation, getRotationDeg, getScale, getStage, getTransform, getX, getY, getZIndex, hide, isDragging, isVisible, listen, move, moveDown, moveTo, moveToBottom, moveToTop, moveUp, off, on, rotate, rotateDeg, setAbsolutePosition, setAlpha, setAttrs, setCenterOffset, setDefaultAttrs, setDetectionType, setDragBounds, setDragConstraint, setPosition, setRotation, setRotationDeg, setScale, setX, setY, setZIndex, show, transitionTo
Class Detail
Kinetic.RegularPolygon(config)
RegularPolygon constructor. Examples include triangles, squares, pentagons, hexagons, etc.
- Parameters:
- {Object} config
Method Detail
getRadius()
get radius
getSides()
get number of sides
setRadius(radius)
set radius
- Parameters:
- {Number} radius
setSides(sides)
set number of sides
- Parameters:
- {int} sides