# ColorBlock extension

**URL:** <https://forum.makecode.com/t/colorblock-extension/9518>\
**Category:** Show & Tell\
**Tags:** extension\
**Created:** [August 3, 2021, 11:33pm UTC](https://forum.makecode.com/t/colorblock-extension/9518 "2021-08-03T23:33:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [August 3, 2021, 11:33pm UTC](https://forum.makecode.com/t/colorblock-extension/9518/1 "2021-08-03T23:33:54Z")

</div>

Imagine memorizing the values of the colors in MakeCode Arcade.

> **[GitHub - UnsignedArduino/ColorBlock: Imagine memorizing the values of the...](https://github.com/UnsignedArduino/ColorBlock)**
>
> Imagine memorizing the values of the colors in MakeCode Arcade. - GitHub - UnsignedArduino/ColorBlock: Imagine memorizing the values of the colors in MakeCode Arcade.

Block:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/dacc9fb7ce4850cdf1bf5e1e0f096a878e72bdf1.png)  
(It’s at the very bottom of the Images category)

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [August 4, 2021, 4:27pm UTC](https://forum.makecode.com/t/colorblock-extension/9518/2 "2021-08-04T16:27:35Z")

</div>

Wow, I litterally just wanted to ask someone on the forum is there a way to set a variable to a color and you make this. Thanks!

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [August 4, 2021, 5:54pm UTC](https://forum.makecode.com/t/colorblock-extension/9518/3 "2021-08-04T17:54:20Z")

</div>

All colors in MakeCode are actually just a number from 0 (transparency) to 15. But it’s really hard to remember what color is which number so I just made this helper block which returns the color that you selected.

---

<div class="post-metadata">

**Author:** ![Sarge](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sarge/32/19590_2.png) [@Sarge](https://forum.makecode.com/u/Sarge)\
**Post date:** [August 4, 2021, 6:06pm UTC](https://forum.makecode.com/t/colorblock-extension/9518/4 "2021-08-04T18:06:17Z")

</div>

Yes, I know that, but this is a lot more convenient
