• [SVG] Simple introduce for SVG


    Just like create html page, you can create a svg tag by:

    <?xml version="1.0" encoding="utf-8"?>
    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" height="340" width="340" style="background-color:#F6F7F7;">
    
    </svg>

    Inside svg,

    • x,y:  control the position of element
    • fill: control the color of element
    • height, you know

    Simple example by rect tag:

    <?xml version="1.0" encoding="utf-8"?>
    <svg version="1.1" xmlns="http://www.w3.org/2000/svg" height="340" width="340" style="background-color:#F6F7F7;">
        <!-- Chimney -->
        <rect height="21" width="14" fill="#FBF6A7" x="98" y="127"/>
        <rect height="4" width="20" fill="#E04E27" x="95" y="123"/>
    
        <!-- House -->
        <rect height="84" width="162" fill="#FBF6A7" x="90" y="198"/>
        <rect height="56" width="184" fill="#E04E27" x="80" y="148"/>
    
        <!-- Door -->
        <rect height="60" width="36" fill="#E04E27" x="153" y="222"/>
        <!-- Door handler -->
        <rect height="8" width="2" fill="#FBF6A7" x="183" y="252"/>
    </svg>

  • 相关阅读:
    杜教筛
    单纯形法
    回文树
    模板综合
    不明觉厉的数据结构题2
    gedit脚本
    01分数规划入门
    LCT裸题泛做
    洛谷P4586 [FJOI2015]最小覆盖双圆问题(最小圆覆盖)
    洛谷P1742 最小圆覆盖(计算几何)
  • 原文地址:https://www.cnblogs.com/Answer1215/p/5351274.html
Copyright © 2020-2023  润新知