# Background in Animation Library- Sizing

**URL:** <https://forum.code.org/t/background-in-animation-library-sizing/24293>\
**Category:** Unit and Lesson Discussion\
**Tags:** csd-unit-3, csd-unit-3-lesson-6\
**Created:** [January 24, 2019, 3:51pm UTC](https://forum.code.org/t/background-in-animation-library-sizing/24293 "2019-01-24T15:51:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kisner](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@kisner](https://forum.code.org/u/kisner)\
**Post date:** [January 24, 2019, 3:51pm UTC](https://forum.code.org/t/background-in-animation-library-sizing/24293/1 "2019-01-24T15:51:41Z")

</div>

Hello! I am having an issue where choosing the background sprite from the animation library does not size correctly; it does not cover the entire 400x400 display area. It may only cover 1/4th of the display area, or it will stretch to the full 400x400 but will only show a portion of the image. How can I put the entire image into the full display area?

---

<div class="post-metadata">

**Author:** ![karenma](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/karenma/32/4924_2.png) [@karenma](https://forum.code.org/u/karenma)\
**Post date:** [January 24, 2019, 6:05pm UTC](https://forum.code.org/t/background-in-animation-library-sizing/24293/2 "2019-01-24T18:05:41Z")

</div>

Hello Janel,

Make sure that your background sprite in the draw function is set to (200, 200).

For example:

function draw() {  
var sprite = createSprite(200, 200);  
sprite.setAnimation(“background”);  
drawSprites();  
}

If this doesn’t help then share your code so we can solve any further issues you may have.  
Have an excellent day 🙂
