It compares two unlike things using 'like' or 'as.'
It makes non-human things seem like they have human qualities, making the writing more interesting.
Baroque art features strong contrasts, while Rococo art prefers more subtle transitions
Baroque art is generally larger in scale than Rococo art