HTML ဂရပ်ဖစ်

ဂရပ်ဖစ် ပင်မစာမျက်နှာ

Google Maps

Maps မိတ်ဆက် Maps အခြေခံ Maps Overlays Maps ပွဲများ Maps ထိန်းချုပ်မှုများ Maps အမျိုးအစားများ Maps အကိုးအကား

SVG ကျူတိုရီရယ်

SVG နိဒါန်း HTML တွင် SVG SVG စတုဂံ SVG စက်ဝိုင်း SVG Ellipse SVG လိုင်း SVG Polygon SVG Polyline SVG လမ်းကြောင်း SVG စာသား SVG Stroking SVG Filters နိဒါန်း SVG မှုန်ဝါးခြင်းအကျိုးသက်ရောက်မှုများ SVG Drop Shadows SVG Linear SVG Radial SVG ဥပမာများ SVG အကိုးအကား

Canvas ကျူတိုရီရယ်

Canvas မိတ်ဆက် ကင်းဗတ်ဆွဲခြင်း။ Canvas Coordinates ကင်းဗတ် Gradients ကင်းဗတ်စာသား ကင်းဗတ်ပုံများ ကင်းဗတ်ရည်ညွှန်း

ကင်းဗတ်နာရီ

နာရီ မိတ်ဆက် နာရီမျက်နှာ နာရီနံပါတ်များ နာရီလက်များ နာရီစတင်

HTML ဂိမ်း

ဂိမ်းမိတ်ဆက် ဂိမ်း Canvas ဂိမ်းအစိတ်အပိုင်းများ ဂိမ်းထိန်းချုပ်သူများ ဂိမ်းအတားအဆီးများ ဂိမ်းရမှတ် ဂိမ်းပုံများ ဂိမ်းအသံ ဂိမ်းဆွဲငင်အား ဂိမ်းခုန်ခြင်း။ ဂိမ်းလှည့်ခြင်း။ ဂိမ်းလှုပ်ရှားမှု

SVG <polygon>


SVG Polygon - <polygon>

<polygon> ဒြပ်စင်အား အနည်းဆုံး ဘက်သုံးဘက်ပါရှိသော ဂရပ်ဖစ်ဖန်တီးရန် အသုံးပြုသည်။

Polygons များကို မျဉ်းဖြောင့်များဖြင့် ပြုလုပ်ထားပြီး ပုံသဏ္ဍာန်မှာ "ပိတ်" (လိုင်းများအားလုံး ချိတ်ဆက်ထားသည်)။

Polygon သည် ဂရိမှ ဆင်းသက်လာသည်။ "Poly" သည် "များစွာ" နှင့် "gon" သည် "ထောင့်" ဖြစ်သည်။


ဥပမာ ၁

အောက်ဖော်ပြပါ ဥပမာသည် ဘက်သုံးထောင့်ပါသော polygon တစ်ခုကို ဖန်တီးသည်-

Sorry, your browser does not support inline SVG.

ဤသည်မှာ SVG ကုဒ်ဖြစ်သည်

ဥပမာ

<svg height="210" width="500">
  <polygon points="200,10 250,190 160,210" style="fill:lime;stroke:purple;stroke-width:1" />
</svg>

ကုဒ်၏ ရှင်းလင်းချက်

  • အချက်များ attribute သည် polygon ၏ထောင့်တစ်ခုစီအတွက် x နှင့် y သြဒိနိတ်များကို သတ်မှတ်သည်။

ဥပမာ ၂

အောက်ဖော်ပြပါ ဥပမာသည် လေးဘက်လေးတန်ရှိသော polygon တစ်ခုကို ဖန်တီးသည်-

Sorry, your browser does not support inline SVG.

ဤသည်မှာ SVG ကုဒ်ဖြစ်သည်

ဥပမာ

<svg height="250" width="500">
  <polygon points="220,10 300,210 170,250 123,234" style="fill:lime;stroke:purple;stroke-width:1" />
</svg>


ဥပမာ ၃

ကြယ်တစ်ပွင့်ဖန်တီးရန် <polygon> ဒြပ်စင်ကို အသုံးပြုပါ-

Sorry, your browser does not support inline SVG.

ဤသည်မှာ SVG ကုဒ်ဖြစ်သည်

ဥပမာ

<svg height="210" width="500">
  <polygon points="100,10 40,198 190,78 10,78 160,198"
  style="fill:lime;stroke:purple;stroke-width:5;fill-rule:nonzero;" />
</svg>

ဥပမာ ၄

ဖြည့်စွက်စည်းမျဉ်းကို "evenodd" သို့ ပြောင်းပါ-

Sorry, your browser does not support inline SVG.

ဤသည်မှာ SVG ကုဒ်ဖြစ်သည်

ဥပမာ

<svg height="210" width="500">
  <polygon points="100,10 40,198 190,78 10,78 160,198"
  style="fill:lime;stroke:purple;stroke-width:5;fill-rule:evenodd;" />
</svg>