# Imagecreatetruecolor() & Background Colour

**URL:** <https://forum.kirupa.com/t/imagecreatetruecolor-background-colour/217664>\
**Category:** Uncategorized\
**Created:** [February 28, 2007, 8:59pm UTC](https://forum.kirupa.com/t/imagecreatetruecolor-background-colour/217664 "2007-02-28T20:59:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nineteen](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nineteen/32/2679_2.png) [@Nineteen](https://forum.kirupa.com/u/Nineteen)\
**Post date:** [February 28, 2007, 8:59pm UTC](https://forum.kirupa.com/t/imagecreatetruecolor-background-colour/217664/1 "2007-02-28T20:59:24Z")

</div>

Morning!

At the moment I’m creating a canvas with imagecreatetruecolor() function - I’m wondering, how do I go about setting the canvas background to white, or any other colour for that matter.

Currently it sets it to black ☹

Cheers,  
R J
