Instructions: Slide the control to adjust the kaleidoscope angle.įor all available filters go to Filters Documentation. Draw three horizontal lines across the rectangle, splitting it into three 1 14 inch (3.2 cm) pieces and one 14 inch (0.6 cm) piece. To create a kaleidoscope with Konva, we can use the įilter and set the kaleidoscopePower and kaleidoscopeAngle properties. 1 Draw an eight-by-four inch rectangle on a clear plastic report cover.This is going to be the base of your Kaleidoscope. Then apply filter with filters() function. To apply filter to an Konva.Image, we have to cache it first with cache()įunction. Getting Started Intro Overview Need help? Support Konva Tools Shapes Rect Circle Ellipse Wedge Line - Simple Line Line - Polygon Line - Spline Line - Blob Sprite Image Text TextPath Star Ring Arc Label Path RegularPolygon Arrow Custom Guides Position vs Offset Tainted Canvas Issue Styling Fill Stroke Opacity Shadow Line Join Hide and Show Mouse Cursor Style Blend Mode Fill Stroke Order Events Binding Events Mobile Events Pointer Events Desktop and Mobile Event Mobile Scrolling Multi Event Remove Event Remove by Name Listen for Events Cancel Propagation Event Delegation Fire Events Stage Events Custom Hit Region Image Hit Region Keyboard Events Desktop and Mobile Drag and Drop Drag and Drop Drag an Image Drag a Group Drag a Line Drag a Stage Drag Events Simple Drag Bounds Complex Drag and Drop Drop Events Select and Transform Basic demo Centered Scaling Keep Ratio Styling Transform Events Resize Limits Rotation Snaps Resize Snaps Stop Transform Force Update Text Resizing Ignore Stroke Clipping Simple Clip Complex Clip Groups, Layers and Ordering Groups Layering Change Containers zIndex Filters Blur Brighten Contrast Emboss Enhance Grayscale HSL HSV RGB Invert Kaleidoscope Mask Noise Pixelate Custom Filter Multiple Filters Tweens Linear Easing Common Easings All Easings Finish Event All Controls Tween Filter Complex Tweening Animations Create an Animation Moving Rotation Scaling Stop Animation Selectors Select by id Select by Type Select by Name Data & Serialization & Export Serialize a Stage Simple Load Complex Load JSON Best Practices Stage Data URL Export to HD Image Performance All tips Layer Management Batch Draw Shape Caching Optimize Animation Optimize Strokes Shape Redraw Disable Perfect Drawing Listening False Avoid Memory Leaks
0 Comments
Leave a Reply. |