Skip to content

第 28 期(W3C 标准-SVG):用SVG画西瓜 #31

Open

Description

@wingmeng

题目:

请使用SVG画一个如下图所示的“西瓜”:

image

尺寸:200×200
颜色:#E92F34(红)、#32AC1A(绿)

<svg version="1.1" xmlns="http://www.w3.org/2000/svg">
  <!-- 请开始你的表演 -->
</svg>

参考答案:

<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 208 208">
  <circle
    fill="#E92F34"
    stroke="#32AC1A"
    stroke-width="8"
    cx="104"
    y="100"
    r="100"
  ></circle> 
</svg>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions