{
  "id": "fn-kanvas-pixel",
  "dataComponent": "kanvas",
  "heading": {
    "title": "pixel",
    "badges": ["Kanvas"]
  },
  "synopsis": "Sets a single pixel to the specified color in the window.",
  "codeBlocks": [
    "extend(\"kanvas\")\n\nwin = kanvas:create([ width:320, height:200 ])\nkanvas:display(win)\n\nkanvas:pixel(win, [10,15], \"#FF00FF\")   # sets pixel at (10,15) to magenta\n"
  ],
  "notes": [
    "Arguments:",
    "- Window handle",
    "- Coordinates as an [x, y] array (integers)",
    "- Color as a string (e.g. '#RRGGBB' or '#AARRGGBB')",
    "Colors support hex formats. Coordinates are zero-based. No return value.",
    "Call kanvas:refresh(win) to display updates."
  ]
}
