Section 25.24. CanvasRenderingContext2D.fillRect( ): fill a rectangle


25.24. CanvasRenderingContext2D.fillRect( ): fill a rectangle

25.24.1. Synopsis

 void fillRect(float x, float y,               float width, float height) 

25.24.1.1. Arguments

x, y

The coordinates of the upper-left corner of rectangle.


width, height

The dimensions of the rectangle.

25.24.2. Description

fillRect( ) fills the specified rectangle with the color, gradient, or pattern specified by the fillStyle property.

Current implementations of fillRect( ) also clear the path as if beginPath( ) had been called. This surprising behavior may not be standardized and should not be relied upon.

25.24.3. See Also

CanvasRenderingContext2D.fill( )
CanvasRenderingContext2D.rect( )
CanvasRenderingContext2D.strokeRect( )



JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net