Crescent Moon Shape
#
This recipe explains how to combine formulas and paths to create a dynamic shape in Kustom
Step 1: Create a new Shape Module
#
In your Kustom editor, create a new Shape module. You can do this by:
- Tapping the “+” button
- Selecting “Shape”
In the shape module, select “Path” as the shape type. This will allow you to define a custom shape using SVG path commands.
...Shapes path
#
From version 3.73 onwards users can use custom SVG paths in Shapes, just add a Shape module and select “Path” as type. This powerful feature allows creating your own shapes while maintaining all the great functionalities of Shapes, such as gradients, masks, and bitmaps. Furthermore, formulas can be used inside the path definition, offering even more customization options! You could use this to generate a graph for example.
...Weather Icon Komponent Creation (Image or SVG)
#
Kustom includes a very basic Weather Image Icon Komponent that allows you to show an image based on the current weather condition (or a forecast by changing the “icon” global to “wf(icon, X)” where X is the number of days, 0 for today and so on)…
The Komponent is very easy to edit and has meaningful image file names so you can create your own in a few steps:
...