---
name: "SDL.newSurface"
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.newSurface"
---

# SDL.newSurface(3kaya)

Create a new display window or screen

## NAME

SDL::newSurface - Create a new display window or screen

## SYNOPSIS

**SDLSurface newSurface(** *Int x, Int y, BPP bpp, Bool fullscreen* **)**

## ARGUMENTS

**x** The width of the screen in pixels

**y** The height of the screen in pixels

**bpp** The colour depth (may be ignored if not fullscreen)

**fullscreen** Whether to display fullscreen (if true) or windowed (if false). This parameter may be ignored in some graphical environments.

## DESCRIPTION

This function creates a new display window or screen with the specified parameters. You must create one of these to display any output.

## 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.
