# Is there any way of changing the screen's brightness directly from a block?

**URL:** https://forum.makecode.com/t/is-there-any-way-of-changing-the-screens-brightness-directly-from-a-block/20616
**Category:** Arcade
**Tags:** make, art, graphics-and-math, extension, game
**Created:** [June 14, 2023, 4:51pm UTC](https://forum.makecode.com/t/is-there-any-way-of-changing-the-screens-brightness-directly-from-a-block/20616 "2023-06-14T16:51:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![frandev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/frandev/32/27644_2.png) [@frandev](https://forum.makecode.com/u/frandev)
#### Post date: [June 14, 2023, 4:51pm UTC](https://forum.makecode.com/t/is-there-any-way-of-changing-the-screens-brightness-directly-from-a-block/20616/1 "2023-06-14T16:51:04Z")

</div>

I really need this for a project, so if you can, you can help me create an extension that does this.

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [June 14, 2023, 5:04pm UTC](https://forum.makecode.com/t/is-there-any-way-of-changing-the-screens-brightness-directly-from-a-block/20616/2 "2023-06-14T17:04:54Z")

</div>

The computer screen or the console?

---

<div class="post-metadata">

### Author: ![frandev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/frandev/32/27644_2.png) [@frandev](https://forum.makecode.com/u/frandev)
#### Post date: [June 14, 2023, 5:17pm UTC](https://forum.makecode.com/t/is-there-any-way-of-changing-the-screens-brightness-directly-from-a-block/20616/3 "2023-06-14T17:17:28Z")

</div>

The console.

---

<div class="post-metadata">

### Author: ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)
#### Post date: [June 14, 2023, 5:38pm UTC](https://forum.makecode.com/t/is-there-any-way-of-changing-the-screens-brightness-directly-from-a-block/20616/4 "2023-06-14T17:38:52Z")

</div>

The way I’ve done that is using the color fading extension and subtracting some amount from every single rgb value- basically, moving them all towards black. Then to raise brightness, i would add some, moving them towards white!

---

<div class="post-metadata">

### Author: ![frandev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/frandev/32/27644_2.png) [@frandev](https://forum.makecode.com/u/frandev)
#### Post date: [June 14, 2023, 6:37pm UTC](https://forum.makecode.com/t/is-there-any-way-of-changing-the-screens-brightness-directly-from-a-block/20616/5 "2023-06-14T18:37:19Z")

</div>

Thank you!
