In this tutorial, you will find how to create waving flag vector using illustrator. A Turkish flag will be drawn as an example. Dimensions are chosen with some sense of proportion.
This is very easy and fast way of drawing settings icon. You need only the star tool and change the live corners > chamfer type. Depends on your need you can make a hole in your star shape.