# Unicorn pHAT coding

**URL:** https://forums.pimoroni.com/t/unicorn-phat-coding/7135
**Category:** Support
**Created:** [February 9, 2018, 4:13am UTC](https://forums.pimoroni.com/t/unicorn-phat-coding/7135 "2018-02-09T04:13:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Newbee](https://avatars.discourse-cdn.com/v4/letter/n/5f8ce5/32.png) [@Newbee](https://forums.pimoroni.com/u/Newbee)
#### Post date: [February 9, 2018, 4:13am UTC](https://forums.pimoroni.com/t/unicorn-phat-coding/7135/1 "2018-02-09T04:13:29Z")

</div>

Hello! So I’m very new to all this. I’ve been trying to figure out how I can control the RGB color on the unicorn. I want it fade to different colors over a specified time. I can’t find any examples of this being done and was wondering if i can get pointed in the right direction. thanks!

---

<div class="post-metadata">

### Author: ![major\_tomm](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/major_tomm/32/9044_2.png) [@major\_tomm](https://forums.pimoroni.com/u/major_tomm)
#### Post date: [February 9, 2018, 7:48am UTC](https://forums.pimoroni.com/t/unicorn-phat-coding/7135/2 "2018-02-09T07:48:40Z")

</div>

I always found this to be a good starting point :  
[https://learn.pimoroni.com/tutorial/unicorn-hat/making-rainbows-with-unicorn-hat](https://learn.pimoroni.com/tutorial/unicorn-hat/making-rainbows-with-unicorn-hat)
