# Changing color 0?

**URL:** https://forum.makecode.com/t/changing-color-0/42349
**Category:** Help
**Tags:** extension
**Created:** [February 25, 2026, 6:56pm UTC](https://forum.makecode.com/t/changing-color-0/42349 "2026-02-25T18:56:53Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![IAmMyGuy21th](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/iammyguy21th/32/16978_2.png) [@IAmMyGuy21th](https://forum.makecode.com/u/IAmMyGuy21th)
#### Post date: [February 25, 2026, 6:56pm UTC](https://forum.makecode.com/t/changing-color-0/42349/1 "2026-02-25T18:56:54Z")

</div>

I used the color extension, and found out you can change color 0 using it. Unlocked 1 extra color!

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/a/f/af8ef974b9340cda2d22ae7b73909fc6ca25ef52.png)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/3/e/3e45aba6ad944fd3ecbbcd3c875ced4a97d61002.png)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/e/4/e40dd218a9353d69fdd63e5ff60b7c7612016df4.png)  
Like how though?  
Also the color extension has a lot of features for Javascript mode.  
`color.setPalette(color.createBuffer([color.rgb(255,255,255)], color.ColorBufferLayout.RGB), 0,1)`  
also  
`color.setPalette(color.gradient(color.hsv(0, 255, 255), color.hsv(128, 255, 255), 16))`  
This might be useful?

---

<div class="post-metadata">

### Author: ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)
#### Post date: [February 25, 2026, 7:03pm UTC](https://forum.makecode.com/t/changing-color-0/42349/2 "2026-02-25T19:03:32Z")

</div>

The existence of a transparent color is still neccesary.

---

<div class="post-metadata">

### Author: ![Allegory\_Cheese](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/allegory_cheese/32/31845_2.png) [@Allegory\_Cheese](https://forum.makecode.com/u/Allegory_Cheese)
#### Post date: [February 27, 2026, 11:43am UTC](https://forum.makecode.com/t/changing-color-0/42349/3 "2026-02-27T11:43:49Z")

</div>

erase tool?

---

<div class="post-metadata">

### Author: ![IAmMyGuy21th](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/iammyguy21th/32/16978_2.png) [@IAmMyGuy21th](https://forum.makecode.com/u/IAmMyGuy21th)
#### Post date: [March 14, 2026, 6:23pm UTC](https://forum.makecode.com/t/changing-color-0/42349/4 "2026-03-14T18:23:41Z")

</div>

yeah, but sometimes not really, because sprites render fine i think. they dont have any weird white bg or anything. it probably only set pixel if the color is more than 0, so the only place you can use it is bg.

---

<div class="post-metadata">

### Author: ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)
#### Post date: [March 14, 2026, 11:06pm UTC](https://forum.makecode.com/t/changing-color-0/42349/5 "2026-03-14T23:06:03Z")

</div>

I believe it just changes the color of the background (that black color that shows when nothing is on the screen)  
Sprites work fine because they just don’t render “color 0” to the screen, which means if you tried to use this “extra color” on a sprite it wouldn’t work and would just be see-through. Basically you couldn’t really take advantage of this extra color in a meaningful way unless you just used it in like a background image or something, which would still be cool! Just like you can use “transparency” in a background image to draw the color black, even if you change the default black color to something else!

---

<div class="post-metadata">

### Author: ![IAmMyGuy21th](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/iammyguy21th/32/16978_2.png) [@IAmMyGuy21th](https://forum.makecode.com/u/IAmMyGuy21th)
#### Post date: [March 15, 2026, 9:20pm UTC](https://forum.makecode.com/t/changing-color-0/42349/6 "2026-03-15T21:20:10Z")

</div>

I was going to use this in my Isocraft project, so you could set time of day. I would try using color extension’s gradient function like:  
black-yellow-blue-skyblue-blue-pink-orange-red-navy-black  
like the thing precomputes this gradient first.
