@ALexLancer

Как в SVG залить промежуток между двумя отдельными замкнутыми линиями?

Есть такая шестеренка. Как залить промежуток между контурами?

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 50 50" xml:space="preserve">
	<g id="Layer_1_1_">
		<path fill-rule="nonzero" d="M1.118 27.411l4.271 1.412c.176.909.415 1.804.714 2.673l-2.998 3.363.292.602a23.935 23.935 0 0 0 1.746 3.017l.376.553 4.391-.914c.609.7 1.268 1.358 1.968 1.968l-.914 4.39.552.376a23.973 23.973 0 0 0 3.018 1.747l.602.292 3.363-2.998a19.78 19.78 0 0 0 2.673.714l1.413 4.271.667.048c.578.043 1.16.071 1.748.071s1.17-.028 1.748-.07l.667-.048 1.412-4.271a19.78 19.78 0 0 0 2.673-.714l3.363 2.998.602-.292a23.935 23.935 0 0 0 3.017-1.746l.553-.376-.914-4.391c.7-.609 1.358-1.268 1.968-1.968l4.39.914.376-.552a24.077 24.077 0 0 0 1.747-3.018l.292-.602-2.998-3.364a19.78 19.78 0 0 0 .714-2.673l4.271-1.413.048-.667c.043-.577.071-1.159.071-1.747s-.028-1.17-.07-1.748l-.048-.667-4.271-1.412a19.78 19.78 0 0 0-.714-2.673l2.998-3.363-.292-.602a23.935 23.935 0 0 0-1.746-3.017l-.376-.553-4.391.914a20.198 20.198 0 0 0-1.968-1.968l.914-4.39-.552-.376a23.973 23.973 0 0 0-3.018-1.747l-.602-.292L31.501 6.1a19.78 19.78 0 0 0-2.673-.714l-1.413-4.271-.667-.048a24.56 24.56 0 0 0-3.495 0l-.667.048-1.412 4.271a19.78 19.78 0 0 0-2.673.714l-3.363-2.999-.602.292a23.91 23.91 0 0 0-3.017 1.747l-.553.376.914 4.391c-.7.609-1.358 1.268-1.968 1.968l-4.39-.914-.376.552a23.973 23.973 0 0 0-1.747 3.018l-.292.602 2.998 3.363a19.78 19.78 0 0 0-.714 2.673L1.12 22.582l-.048.667C1.028 23.826 1 24.408 1 24.996s.028 1.17.07 1.748l.048.667zm1.906-3.353l4.135-1.368.098-.599c.192-1.187.503-2.352.924-3.461l.215-.567-2.899-3.252c.289-.551.602-1.092.936-1.616l4.247.884.384-.469a18.161 18.161 0 0 1 2.549-2.548l.469-.384-.884-4.248a22.378 22.378 0 0 1 1.616-.936l3.252 2.9.567-.215a17.795 17.795 0 0 1 3.462-.924l.599-.098 1.367-4.135c.622-.03 1.255-.03 1.877 0l1.368 4.135.599.098c1.187.192 2.352.503 3.461.924l.567.215 3.252-2.899c.551.289 1.092.602 1.616.936l-.884 4.247.469.384c.93.762 1.788 1.619 2.548 2.549l.384.469 4.248-.884c.334.524.647 1.064.936 1.616l-2.899 3.252.215.567c.421 1.111.732 2.276.924 3.462l.098.599 4.135 1.367a18.162 18.162 0 0 1 .001 1.875l-4.135 1.368-.098.599a17.767 17.767 0 0 1-.924 3.461l-.215.567 2.899 3.252a21.955 21.955 0 0 1-.936 1.616l-4.247-.884-.384.469a18.161 18.161 0 0 1-2.549 2.548l-.469.384.884 4.248c-.524.334-1.064.647-1.616.936l-3.252-2.899-.567.215a17.833 17.833 0 0 1-3.462.924l-.599.098-1.367 4.135c-.622.03-1.255.03-1.877 0l-1.368-4.135-.599-.098a17.767 17.767 0 0 1-3.461-.924l-.567-.215-3.252 2.899a22.165 22.165 0 0 1-1.616-.936l.884-4.247-.469-.384a18.161 18.161 0 0 1-2.548-2.549l-.384-.469-4.248.884a21.955 21.955 0 0 1-.936-1.616l2.899-3.252-.215-.567a17.833 17.833 0 0 1-.924-3.462l-.098-.599-4.135-1.367a18.231 18.231 0 0 1-.001-1.876z"/>
		<path fill-rule="nonzero" d="M25 38.996c7.72 0 14-6.28 14-14s-6.28-14-14-14-14 6.28-14 14 6.28 14 14 14zm0-26c6.617 0 12 5.383 12 12s-5.383 12-12 12-12-5.383-12-12 5.383-12 12-12z"/>
	</g>
</svg>
  • Вопрос задан
  • 107 просмотров
Решения вопроса 1
RAX7
@RAX7
Положи в этот промежуток еще один path
Ответ написан
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы