Read more on MDN
let arc: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~x: float, ~y: float, ~radius: float, ~startAngle: float, ~endAngle: float, ~counterclockwise: bool=?,) => unit
let arcTo: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~x1: float, ~y1: float, ~x2: float, ~y2: float, ~radius: float,) => unit
let beginPath: WebAPI.DOMAPI.canvasRenderingContext2D => unit
let bezierCurveTo: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~cp1x: float, ~cp1y: float, ~cp2x: float, ~cp2y: float, ~x: float, ~y: float,) => unit
let clearRect: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~x: float, ~y: float, ~w: float, ~h: float,) => unit
let clip: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~fillRule: WebAPI.CanvasAPI.canvasFillRule=?,) => unit
let clip2: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~path: WebAPI.CanvasAPI.path2D, ~fillRule: WebAPI.CanvasAPI.canvasFillRule=?,) => unit
let closePath: WebAPI.DOMAPI.canvasRenderingContext2D => unit
let createConicGradient: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~startAngle: float, ~x: float, ~y: float,) => WebAPI.CanvasAPI.canvasGradient
let createImageData: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~sw: int, ~sh: int, ~settings: WebAPI.DOMAPI.imageDataSettings=?,) => WebAPI.DOMAPI.imageData
let createImageData2: ( WebAPI.DOMAPI.canvasRenderingContext2D, WebAPI.DOMAPI.imageData,) => WebAPI.DOMAPI.imageData
let createLinearGradient: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~x0: float, ~y0: float, ~x1: float, ~y1: float,) => WebAPI.CanvasAPI.canvasGradient
let createPattern: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.htmlImageElement, ~repetition: string,) => WebAPI.CanvasAPI.canvasPattern
let createPattern2: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.svgImageElement, ~repetition: string,) => WebAPI.CanvasAPI.canvasPattern
let createPattern3: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.htmlVideoElement, ~repetition: string,) => WebAPI.CanvasAPI.canvasPattern
let createPattern4: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.htmlCanvasElement, ~repetition: string,) => WebAPI.CanvasAPI.canvasPattern
let createPattern5: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.CanvasAPI.imageBitmap, ~repetition: string,) => WebAPI.CanvasAPI.canvasPattern
let createPattern6: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.CanvasAPI.offscreenCanvas, ~repetition: string,) => WebAPI.CanvasAPI.canvasPattern
let createPattern7: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.videoFrame, ~repetition: string,) => WebAPI.CanvasAPI.canvasPattern
let createRadialGradient: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~x0: float, ~y0: float, ~r0: float, ~x1: float, ~y1: float, ~r1: float,) => WebAPI.CanvasAPI.canvasGradient
let drawFocusIfNeeded: ( WebAPI.DOMAPI.canvasRenderingContext2D, WebAPI.DOMAPI.element,) => unit
let drawFocusIfNeeded2: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~path: WebAPI.CanvasAPI.path2D, ~element: WebAPI.DOMAPI.element,) => unit
let drawImage: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.htmlImageElement, ~dx: float, ~dy: float,) => unit
let drawImage10: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.htmlVideoElement, ~dx: float, ~dy: float, ~dw: float, ~dh: float,) => unit
let drawImage11: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.htmlCanvasElement, ~dx: float, ~dy: float, ~dw: float, ~dh: float,) => unit
let drawImage12: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.CanvasAPI.imageBitmap, ~dx: float, ~dy: float, ~dw: float, ~dh: float,) => unit
let drawImage13: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.CanvasAPI.offscreenCanvas, ~dx: float, ~dy: float, ~dw: float, ~dh: float,) => unit
let drawImage14: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.videoFrame, ~dx: float, ~dy: float, ~dw: float, ~dh: float,) => unit
let drawImage15: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.htmlImageElement, ~sx: float, ~sy: float, ~sw: float, ~sh: float, ~dx: float, ~dy: float, ~dw: float, ~dh: float,) => unit
let drawImage16: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.svgImageElement, ~sx: float, ~sy: float, ~sw: float, ~sh: float, ~dx: float, ~dy: float, ~dw: float, ~dh: float,) => unit
let drawImage17: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.htmlVideoElement, ~sx: float, ~sy: float, ~sw: float, ~sh: float, ~dx: float, ~dy: float, ~dw: float, ~dh: float,) => unit
let drawImage18: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.htmlCanvasElement, ~sx: float, ~sy: float, ~sw: float, ~sh: float, ~dx: float, ~dy: float, ~dw: float, ~dh: float,) => unit
let drawImage19: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.CanvasAPI.imageBitmap, ~sx: float, ~sy: float, ~sw: float, ~sh: float, ~dx: float, ~dy: float, ~dw: float, ~dh: float,) => unit
let drawImage2: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.svgImageElement, ~dx: float, ~dy: float,) => unit
let drawImage20: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.CanvasAPI.offscreenCanvas, ~sx: float, ~sy: float, ~sw: float, ~sh: float, ~dx: float, ~dy: float, ~dw: float, ~dh: float,) => unit
let drawImage21: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.videoFrame, ~sx: float, ~sy: float, ~sw: float, ~sh: float, ~dx: float, ~dy: float, ~dw: float, ~dh: float,) => unit
let drawImage3: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.htmlVideoElement, ~dx: float, ~dy: float,) => unit
let drawImage4: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.htmlCanvasElement, ~dx: float, ~dy: float,) => unit
let drawImage5: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.CanvasAPI.imageBitmap, ~dx: float, ~dy: float,) => unit
let drawImage6: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.CanvasAPI.offscreenCanvas, ~dx: float, ~dy: float,) => unit
let drawImage7: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.videoFrame, ~dx: float, ~dy: float,) => unit
let drawImage8: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.htmlImageElement, ~dx: float, ~dy: float, ~dw: float, ~dh: float,) => unit
let drawImage9: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~image: WebAPI.DOMAPI.svgImageElement, ~dx: float, ~dy: float, ~dw: float, ~dh: float,) => unit
let ellipse: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~x: float, ~y: float, ~radiusX: float, ~radiusY: float, ~rotation: float, ~startAngle: float, ~endAngle: float, ~counterclockwise: bool=?,) => unit
let fill: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~fillRule: WebAPI.CanvasAPI.canvasFillRule=?,) => unit
let fill2: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~path: WebAPI.CanvasAPI.path2D, ~fillRule: WebAPI.CanvasAPI.canvasFillRule=?,) => unit
let fillRect: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~x: float, ~y: float, ~w: float, ~h: float,) => unit
let fillText: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~text: string, ~x: float, ~y: float, ~maxWidth: float=?,) => unit
let getContextAttributes: WebAPI.DOMAPI.canvasRenderingContext2D => WebAPI.CanvasAPI.canvasRenderingContext2DSettings
let getImageData: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~sx: int, ~sy: int, ~sw: int, ~sh: int, ~settings: WebAPI.DOMAPI.imageDataSettings=?,) => WebAPI.DOMAPI.imageData
let getLineDash: WebAPI.DOMAPI.canvasRenderingContext2D => array<float>
let getTransform: WebAPI.DOMAPI.canvasRenderingContext2D => WebAPI.DOMAPI.domMatrix
let isContextLost: WebAPI.DOMAPI.canvasRenderingContext2D => bool
let isPointInPath: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~x: float, ~y: float, ~fillRule: WebAPI.CanvasAPI.canvasFillRule=?,) => bool
let isPointInPath2: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~path: WebAPI.CanvasAPI.path2D, ~x: float, ~y: float, ~fillRule: WebAPI.CanvasAPI.canvasFillRule=?,) => bool
let isPointInStroke: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~x: float, ~y: float,) => bool
let isPointInStroke2: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~path: WebAPI.CanvasAPI.path2D, ~x: float, ~y: float,) => bool
let lineTo: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~x: float, ~y: float,) => unit
let measureText: ( WebAPI.DOMAPI.canvasRenderingContext2D, string,) => WebAPI.CanvasAPI.textMetrics
let moveTo: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~x: float, ~y: float,) => unit
let putImageData: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~imagedata: WebAPI.DOMAPI.imageData, ~dx: int, ~dy: int,) => unit
let putImageData2: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~imagedata: WebAPI.DOMAPI.imageData, ~dx: int, ~dy: int, ~dirtyX: int, ~dirtyY: int, ~dirtyWidth: int, ~dirtyHeight: int,) => unit
let quadraticCurveTo: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~cpx: float, ~cpy: float, ~x: float, ~y: float,) => unit
let rect: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~x: float, ~y: float, ~w: float, ~h: float,) => unit
let reset: WebAPI.DOMAPI.canvasRenderingContext2D => unit
let resetTransform: WebAPI.DOMAPI.canvasRenderingContext2D => unit
let restore: WebAPI.DOMAPI.canvasRenderingContext2D => unit
let rotate: (WebAPI.DOMAPI.canvasRenderingContext2D, float) => unit
let roundRect: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~x: float, ~y: float, ~w: float, ~h: float, ~radii_: array<float>=?,) => unit
let roundRect2: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~x: float, ~y: float, ~w: float, ~h: float, ~radii_: array<float>=?,) => unit
let roundRect3: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~x: float, ~y: float, ~w: float, ~h: float, ~radii_: array<float>=?,) => unit
let save: WebAPI.DOMAPI.canvasRenderingContext2D => unit
let scale: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~x: float, ~y: float,) => unit
let setLineDash: ( WebAPI.DOMAPI.canvasRenderingContext2D, array<float>,) => unit
let setTransform: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~a: float, ~b: float, ~c: float, ~d: float, ~e: float, ~f: float,) => unit
let setTransform2: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~transform: WebAPI.DOMAPI.domMatrix2DInit=?,) => unit
let stroke: WebAPI.DOMAPI.canvasRenderingContext2D => unit
let stroke2: ( WebAPI.DOMAPI.canvasRenderingContext2D, WebAPI.CanvasAPI.path2D,) => unit
let strokeRect: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~x: float, ~y: float, ~w: float, ~h: float,) => unit
let strokeText: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~text: string, ~x: float, ~y: float, ~maxWidth: float=?,) => unit
let transform: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~a: float, ~b: float, ~c: float, ~d: float, ~e: float, ~f: float,) => unit
let translate: ( WebAPI.DOMAPI.canvasRenderingContext2D, ~x: float, ~y: float,) => unit