Results 61 - 72 of 72

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

CanvasRenderingContext2D.translate()

The CanvasRenderingContext2D.translate() method of the Canvas 2D API adds a translation transformation by moving the canvas and its origin x horizontally and y vertically on the grid.
API Canvas CanvasRenderingContext2D Method Reference Référence

Path2D

The Path2D interface of the Canvas 2D API is used to declare paths that are then later used on CanvasRenderingContext2D objects. The path methods of the CanvasRenderingContext2D interface are present on this interface as well and are allowing you to create paths that you can retain and replay as required on a canvas.
API Canvas Interface Path2D Reference Référence

CanvasRenderingContext2D.globalCompositeOperation

The CanvasRenderingContext2D.globalCompositeOperation property of the Canvas 2D API sets the type of compositing operation to apply when drawing new shapes, where type is a string identifying which of the compositing or blending mode operations to use.
API Blending Canvas CanvasRenderingContext2D Compositing Property Reference

CanvasRenderingContext2D.imageSmoothingEnabled

The CanvasRenderingContext2D.imageSmoothingEnabled property of the Canvas 2D API can be set to change if images are smoothed (true, default) or not (false). On getting the imageSmoothingEnabled property, the last value it was set to, is returned.
API Canvas CanvasRenderingContext2D Experimental Expérimental Property Reference

CanvasRenderingContext2D.removeHitRegion()

The CanvasRenderingContext2D.removeHitRegion() method of the Canvas 2D API removes a given hit region from the canvas.
API Canvas CanvasRenderingContext2D Experimental Expérimental Method Reference

CanvasRenderingContext2D.resetTransform()

The CanvasRenderingContext2D.resetTransform() method of the Canvas 2D API resets the current transform by the identity matrix.
Canvas CanvasRenderingContext2D Experimental Expérimental Method Reference Référence

Path2D()

The Path2D() constructor returns a newly instantiated Path2D object, optionally with another path as an argument (creates a copy), or optionally with a string consisting of SVG path data.
API Canvas Constructor Drawing Graphics Path2D Paths Reference Référence