Results 141 - 160 of 1,752

BufferSource

BufferSource is a helper type representing objects that are either themselves an ArrayBuffer, or conform to ArrayBufferView.
API Interface JavaScript Reference Référence Typed Arrays

CanvasGradient.addColorStop()

The CanvasGradient.addColorStop() method adds a new stop, defined by an offset and a color, to the gradient. If the offset is not between 0 and 1, an INDEX_SIZE_ERR is raised, if the color can't be parsed as a CSS <color>, a SYNTAX_ERR is raised.
API Canvas CanvasGradient Gradients Method Reference Référence

CanvasRenderingContext2D.arcTo()

The CanvasRenderingContext2D.arcTo() method of the Canvas 2D API adds an arc to the path with the given control points and radius, connected to the previous point by a straight line.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.beginPath()

The CanvasRenderingContext2D.beginPath() method of the Canvas 2D API starts a new path by emptying the list of sub-paths. Call this method when you want to create a new path.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.bezierCurveTo()

The CanvasRenderingContext2D.bezierCurveTo() method of the Canvas 2D API adds a cubic Bézier curve to the path. It requires three points. The first two points are control points and the third one is the end point. The starting point is the last point in the current path, which can be changed using moveTo() before creating the Bézier curve.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.canvas

The CanvasRenderingContext2D.canvas property is a read-only reference to the HTMLCanvasElement object that is associated with the context. It might be null if there is no association with an <canvas> element.
API Canvas CanvasRenderingContext2D Property Reference Référence

CanvasRenderingContext2D.clearRect()

The CanvasRenderingContext2D.clearRect() method of the Canvas 2D API sets all pixels in the rectangle defined by starting point (x, y) and size (width, height) to transparent black, erasing any previously drawn content.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.clip()

The CanvasRenderingContext2D.clip() method of the Canvas 2D API turns the path currently being built into the current clipping path.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.closePath()

The CanvasRenderingContext2D.closePath() method of the Canvas 2D API causes the point of the pen to move back to the start of the current sub-path. It tries to add a straight line (but does not actually draw it) from the current point to the start. If the shape has already been closed or has only one point, this function does nothing.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.fill()

The CanvasRenderingContext2D.fill() method of the Canvas 2D API fills the current or given path with the current fill style using the non-zero or even-odd winding rule.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.fillRect()

The CanvasRenderingContext2D.fillRect() method of the Canvas 2D API draws a filled rectangle at (x, y) position whose size is determined by width and height and whose style is determined by the fillStyle attribute.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.fillText()

The CanvasRenderingContext2D.fillText() method of the Canvas 2D API fills a given text at the given (x, y) position. If the optional fourth parameter for a maximum width is provided, the text will be scaled to fit that width.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.isPointInStroke()

The CanvasRenderingContext2D.isPointInStroke() method of the Canvas 2D API reports whether or not the specified point is inside the area contained by the stroking of a path.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.lineTo()

The CanvasRenderingContext2D.lineTo() method of the Canvas 2D API connects the last point in the sub-path to the x, y coordinates with a straight line (but does not actually draw it).
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.measureText()

The CanvasRenderingContext2D.measureText() method returns a TextMetrics object that contains information about the measured text (such as its width for example).
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.moveTo()

The CanvasRenderingContext2D.moveTo() method of the Canvas 2D API moves the starting point of a new sub-path to the (x, y) coordinates.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.quadraticCurveTo()

The CanvasRenderingContext2D.quadraticCurveTo() method of the Canvas 2D API adds a quadratic Bézier curve to the path. It requires two points. The first point is a control point and the second one is the end point. The starting point is the last point in the current path, which can be changed using moveTo() before creating the quadratic Bézier curve.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.rect()

The CanvasRenderingContext2D.rect() method of the Canvas 2D API creates a path for a rectangle at position (x, y) with a size that is determined by width and height. Those four points are connected by straight lines and the sub-path is marked as closed, so that you can fill or stroke this rectangle.
API Canvas CanvasRenderingContext2D Method Reference Référence