{
  "id": "fn-kanvas-triangle",
  "dataComponent": "kanvas",
  "heading": {
    "title": "triangle",
    "badges": ["Kanvas"]
  },
  "synopsis": "Draws a filled triangle defined by three corner points.",
  "codeBlocks": [
    "extend(\"kanvas\")\n\nwin = kanvas:create([ width:400, height:300 ])\nkanvas:display(win)\n\nkanvas:triangle(win, [[50,50], [250,80], [120,200]], \"#FF00FF\")\n"
  ],
  "notes": [
    "Arguments:",
    "- Window handle",
    "- Three points: [[x0, y0], [x1, y1], [x2, y2]]",
    "- Color string",
    "Draws a filled triangle with the specified color."
  ]
}
