Contesto grafico

Tramite l’istruzione

g2d=canvas.getContext("2d");

si accede al contesto grafico con il quale si può operare graficamente sul pannello.

Altri valori per l’argomento sono

  • webgl
  • webgl2
  • bitmaprenderer

Proprietà

  1. fillStyle
  2. font
  3. lineCap
  4. lineDashOffset
  5. lineJoin
  6. lineWidth
  7. miterLimit
  8. shadowBlur
  9. shadowColor
  10. shadowOffsetX
  11. shadowOffsetY
  12. strokeStyle
  13. textAlign
  14. textBaseline

Metodi

  1. arcTo()
  2. beginPath()
  3. bezierCurveTo()
  4. clearRect()
  5. clip()
  6. closePath()
  7. createImageData()
  8. createLinearGradient()
  9. createPattern()
  10. createRadialGradient()
  11. fill()
  12. fillRect()
  13. filltext()
  14. getImageData()
  15. getLineDash()
  16. getTransform()
  17. lineTo()
  18. measureText()
  19. moveTo()
  20. putImageData()
  21. quadraticCurveTo()
  22. resetTransform()
  23. restore()
  24. rotate()
  25. save()
  26. scale()
  27. setImageData()
  28. setLineDash()
  29. setTransform()
  30. stroke()
  31. strokeRect()
  32. strokeText()
  33. translate()

Lascia un commento