First up Effect chart:
First, draw the basic shape.
1. Draw a rounded rectangle, adjust the node to make radians appropriate, clone it, scale the appropriate proportions, move, modify-combine the path-punch, and then continue to use a rectangular hole to remove the excess parts below. Then draw a rounded rectangle, adjust the node, as the lock body.
2. Lock high Light production: The following illustration is magnified twice times the effect of the lock, modify-Change path-telescopic path, (internal, Width: 8, angle: Second, sharp angle: 1), and then adjust the node to the rightmost shape. Feather, reducing opacity.
Clone a few just get this figure, do strip shape gradient, adjust the node to make the left and right sides of the opacity, and then draw the left side of the high light shape, adjust their position, and then put the high light part on the lock, to get to the right-hand lock.
3. Lock: Linear gradient on the rectangle, as shown. In order to describe the light sense of the thread on the lock, a high light and shadow are added to it (look at the source file)
4. Black and yellow stripes: Draw a yellow and black rectangle, combine, and then clone multiple. Combine all the small rectangles you just drew, select the black-yellow stripe rectangle on the right side of the tilt tool, draw a rectangle, and the gradient makes the opacity on both sides lower, and place the rectangle on the newly tilted black-yellow stripe rectangle, select them, and combine the masks.
5. Stripe of the high light and shadow: as shown in the picture, the black and yellow stripes in the right place to lock the body, draw a rectangle with a width height of 2 on the black and yellow stripes, and opacity to 23. Then draw a rectangle with a height of 2, feather, and the linear gradient is lower on both sides of the opacity, side under the black and yellow stripes.
Put the locks and lock body together to get the final effect.
Source file: