Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

2. Canvas-Referenz > CRC.fillRect()

Name

CRC.fillRect() — füllt ein Rechteck

Überblick

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

Argumente

x, y

Die Koordinaten der linken oberen Ecke des Rechtecks.

width, height

Die Maße des Rechtecks.

Beschreibung

fillRect() füllt das angegebene Rechteck mit der Farbe, dem Verlauf oder dem Muster, das von der Eigenschaft fillStyle angegeben wird.

Im Unterschied zu rect() hat fillRect() keine Auswirkung auf den aktuellen Punkt oder den aktuellen Pfad.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial