SVG <ellipse>
- Previous Page SVG Circle
- Next Page SVG Line
<ellipse> ປ້າຍຍາກທີ່ສ້າງອານຸສາວະລີ.
<ellipse> ປ້າຍຍາກ
<ellipse> ປ້າຍຍາກທີ່ສ້າງອານຸສາວະລີ. ອານຸສາວະລີດາວຫຼາຍຄືກັບອານຸສາວະລີບອນ. ຄວາມແຕກຕ່າງກໍ່ຈະຢູ່ວ່າອານຸສາວະລີດາວຫຼາຍມີລະດັບ x ແລະ y ທີ່ຕ່າງກັນ, ແຕ່ອານຸສາວະລີບອນມີລະດັບ x ແລະ y ທີ່ຕ່າງກັນ.
ການສໍາເນົາລະບຽບດ້ານດາວໂຫຼດນີ້ລົງໃນເອກະສານຄູ່ມື, ແລະບັນທຶກເອກະສານວ່າ "ellipse1.svg". ສົ່ງເອກະສານນີ້ເຂົ້າໃນສາຍເວັບຂອງທ່ານ:
<?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"> "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="100%" height="100%" version="1.1"> xmlns="http://www.w3.org/2000/svg"> <ellipse cx="300" cy="150" rx="200" ry="80" style="fill:rgb(200,100,50); stroke:rgb(0,0,100);stroke-width:2"/> </svg>
ການອະທິບາຍລະບຽບ:
- ລະບຽບ cx ກໍານົດລະດັບບາງຢູ່ x
- ລະບຽບ cy ກໍານົດລະດັບບາງຢູ່ y
- ລະບຽບ rx ກໍານົດລະດັບລະບາຍທາງຮູບ
- ລະບຽບ ry ກໍານົດລະດັບລະບາຍທາງຊາຍ
ບົດຢ່າງນີ້ສ້າງສາມອານຸສາວະລີຕັ້ງຕໍ່ກັນ:
<?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"> "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="100%" height="100%" version="1.1"> xmlns="http://www.w3.org/2000/svg"> <ellipse cx="240" cy="100" rx="220" ry="30" style="fill:purple"/> <ellipse cx="220" cy="70" rx="190" ry="20" style="fill:lime"/> <ellipse cx="210" cy="45" rx="170" ry="15" style="fill:yellow"/> </svg>
The following example combines two ellipses (one yellow and one white):
<?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"> "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="100%" height="100%" version="1.1"> xmlns="http://www.w3.org/2000/svg"> <ellipse cx="240" cy="100" rx="220" ry="30" style="fill:yellow"/> <ellipse cx="220" cy="100" rx="190" ry="20" style="fill:white"/> </svg>
- Previous Page SVG Circle
- Next Page SVG Line