HTML5 CANVAS

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

beginPath()

Begins a path, or resets the current path

fillText()

Draws "filled" text on the canvas

fillRect()

Draws a "filled" rectangle

strokeRect()

Draws a rectangle (no fill)

drawImage()

Draws an image, canvas, or video onto the canvas

strokeText()

Draws text on the canvas (no fill)

fill()

Fills the current drawing (path)

translate()

Remaps the (0,0) position on the canvas

save()

Saves the state of the current context

stroke()

Actually draws the path you have defined

lineTo()

Adds a new point and creates a line from that point to the last specified point in the canvas

clearRect()

Clears the specified pixels within a given rectangle

clip()

Clips a region of any shape and size from the original canvas

bezierCurveTo()

Creates a cubic Bézier curve

createLinearGradient()

Creates a linear gradient (to use on canvas content)

createImageData()

Creates a new, blank ImageData object

closePath()

Creates a path from the current point back to the starting point

quadraticCurveTo()

Creates a quadratic Bézier curve

createRadialGradient()

Creates a radial/circular gradient (to use on canvas content)

rect()

Creates a rectangle

arc()

Creates an arc/curve (used to create circles, or parts of circles)

arcTo()

Creates an arc/curve between two tangents

moveTo()

Moves the path to the specified point in the canvas, without creating a line

putImageData()

Puts the image data (from a specified ImageData object) back onto the canvas

createPattern()

Repeats a specified element in the specified direction

transform()

Replaces the current transformation matrix for the drawing

setTransform()

Resets the current transform to the identity matrix. Then runs transform()

getImageData()

Returns an ImageData object that copies the pixel data for the specified rectangle on a canvas

data

Returns an object that contains image data of a specified ImageData object

measureText()

Returns an object that contains the width of the specified text

restore()

Returns previously saved path state and attributes

height

Returns the height of an ImageData object

width

Returns the width of an ImageData object

isPointInPath()

Returns true if the specified point is in the current path, otherwise false

rotate()

Rotates the current drawing

scale()

Scales the current drawing bigger or smaller

globalCompositeOperation

Sets or returns how a new image are drawn onto an existing image

shadowBlur

Sets or returns the blur level for shadows

shadowColor

Sets or returns the color to use for shadows

strokeStyle

Sets or returns the color, gradient, or pattern used for strokes

fillStyle

Sets or returns the color, gradient, or pattern used to fill the drawing

textAlign

Sets or returns the current alignment for text content

globalAlpha

Sets or returns the current alpha or transparency value of the drawing

font

Sets or returns the current font properties for text content

lineWidth

Sets or returns the current line width

textBaseline

Sets or returns the current text baseline used when drawing text

shadowOffsetX

Sets or returns the horizontal distance of the shadow from the shape

miterLimit

Sets or returns the maximum miter length

lineCap

Sets or returns the style of the end caps for a line

lineJoin

Sets or returns the type of corner created, when two lines meet

shadowOffsetY

Sets or returns the vertical distance of the shadow from the shape

addColorStop()

Specifies the colors and stop positions in a gradient object


Kaugnay na mga set ng pag-aaral

BIOS 1700 Exam 5 Missed Study Questions

View Set

HUM210 Astone Film Multi-Choice Set 13

View Set

Insurance Quiz Types of Health Insurance Policy

View Set

Gastrointestinal Medication (Chapter 53)

View Set

Principles of Marketing - Exam 1

View Set

Arrays/Matrices Practice Questions - Java

View Set