---
name: "SDL.drawRectangle"
section: "3kaya"
platform: "linux"
package: "libkaya-sdl-dev"
version: "0.4.4-6.2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL.drawRectangle"
---

# SDL.drawRectangle(3kaya)

Draw a filled rectangle

## NAME

SDL::drawRectangle - Draw a filled rectangle

## SYNOPSIS

**Void drawRectangle(** *SDLSurface surface, Rect rect, SDLColour colour* **)**

## ARGUMENTS

**surface** The surface to fill

**rect** The rectangle on the surface to fill

**colour** The colour to fill

## DESCRIPTION

Draw a filled rectangle of the specified colour on the surface

## AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

## LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

## RELATED

**SDL.Rect (3kaya)**

**SDL.SDLColour (3kaya)**

**SDL.SDLSurface (3kaya)**
