Results 81 - 100 of 129

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

CanvasRenderingContext2D.restore()

The CanvasRenderingContext2D.restore() method of the Canvas 2D API restores the most recently saved canvas state by popping the top entry in the drawing state stack. If there is no saved state, this method does nothing.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.rotate()

The CanvasRenderingContext2D.rotate() method of the Canvas 2D API adds a rotation to the transformation matrix. The angle argument represents a clockwise rotation angle and is expressed in radians.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.save()

The CanvasRenderingContext2D.save() method of the Canvas 2D API saves the entire state of the canvas by pushing the current state onto a stack.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.scale()

The CanvasRenderingContext2D.scale() method of the Canvas 2D API adds a scaling transformation to the canvas units by x horizontally and by y vertically.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.scrollPathIntoView()

The CanvasRenderingContext2D.scrollPathIntoView() method of the Canvas 2D API scrolls the current or given path into the view. It is similar to Element.scrollIntoView().
API Canvas CanvasRenderingContext2D Experimental Method Reference

CanvasRenderingContext2D.setLineDash()

The CanvasRenderingContext2D.setLineDash() method of the Canvas 2D API sets the line dash pattern.
API Canvas CanvasRenderingContext2D Method Reference

CanvasRenderingContext2D.setTransform()

The CanvasRenderingContext2D.setTransform() method of the Canvas 2D API resets (overrides) the current transformation to the identity matrix and then invokes a transformation described by the arguments of this method.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.shadowBlur

The CanvasRenderingContext2D.shadowBlur property of the Canvas 2D API specifies the level of the blurring effect; this value doesn't correspond to a number of pixels and is not affected by the current transformation matrix. The default value is 0.
API Canvas CanvasRenderingContext2D Property Reference

CanvasRenderingContext2D.shadowColor

The CanvasRenderingContext2D.shadowColor property of the Canvas 2D API specifies the color of the shadow.
API Canvas CanvasRenderingContext2D Property Reference

CanvasRenderingContext2D.shadowOffsetX

The CanvasRenderingContext2D.shadowOffsetX property of the Canvas 2D API specifies the distance that the shadow will be offset in horizontal distance.
API Canvas CanvasRenderingContext2D Property Reference Référence

CanvasRenderingContext2D.shadowOffsetY

The CanvasRenderingContext2D.shadowOffsetY property of the Canvas 2D API specifies the distance that the shadow will be offset in vertical distance.
API Canvas CanvasRenderingContext2D Property Reference Référence

CanvasRenderingContext2D.stroke()

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

CanvasRenderingContext2D.strokeRect()

The CanvasRenderingContext2D.strokeRect() method of the Canvas 2D API paints a rectangle which has a starting point at (x, y) and has a w width and an h height onto the canvas, using the current stroke style.
API Canvas CanvasRenderingContext2D Method Reference Référence

CanvasRenderingContext2D.strokeStyle

The CanvasRenderingContext2D.strokeStyle property of the Canvas 2D API specifies the color or style to use for the lines around shapes. The default is #000 (black).
API Canvas CanvasRenderingContext2D Property Reference

CanvasRenderingContext2D.strokeText()

The CanvasRenderingContext2D.strokeText() method of the Canvas 2D API strokes 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.textAlign

The CanvasRenderingContext2D.textAlign property of the Canvas 2D API specifies the current text alignment being used when drawing text. Beware that the alignment is base on the x value of the CanvasRenderingContext2D.fillText method. So if textAlign="center", then the text would be drawn at x-50%*width.
API Canvas CanvasRenderingContext2D Property Reference Référence

CanvasRenderingContext2D.textBaseline

The CanvasRenderingContext2D.textBaseline property of the Canvas 2D API specifies the current text baseline being used when drawing text.
API Canvas CanvasRenderingContext2D Property Reference Référence

CanvasRenderingContext2D.transform()

The CanvasRenderingContext2D.transform() method of the Canvas 2D API multiplies the current transformation with the matrix described by the arguments of this method. You are able to scale, rotate, move and skew the context.
API Canvas CanvasRenderingContext2D Method Reference Référence