# Making an extension for every JavaScript exclusive feature I can think of!

**URL:** https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766
**Category:** Arcade
**Tags:** extension
**Created:** [May 19, 2025, 1:32am UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766 "2025-05-19T01:32:23Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![NeverStopTheCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neverstopthecoder/32/21194_2.png) [@NeverStopTheCoder](https://forum.makecode.com/u/NeverStopTheCoder)
#### Post date: [March 6, 2026, 8:24pm UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/41 "2026-03-06T20:24:15Z")

</div>

well ive mad a extension for this **[https://github.com/neverstopthecoder/screen-brightness](https://github.com/neverstopthecoder/screen-brightness)** but the screenBrightness command for hardware

---

<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 7, 2026, 7:12pm UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/42 "2026-03-07T19:12:15Z")

</div>

Are you saying I can add this block to my extension?

---

<div class="post-metadata">

### Author: ![NeverStopTheCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neverstopthecoder/32/21194_2.png) [@NeverStopTheCoder](https://forum.makecode.com/u/NeverStopTheCoder)
#### Post date: [March 8, 2026, 1:06am UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/43 "2026-03-08T01:06:30Z")

</div>

do you want to? because

You can!! I don’t care

---

<div class="post-metadata">

### Author: ![CodingGrizzlyBear](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codinggrizzlybear/32/14838_2.png) [@CodingGrizzlyBear](https://forum.makecode.com/u/CodingGrizzlyBear)
#### Post date: [April 14, 2026, 4:35pm UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/44 "2026-04-14T16:35:42Z")

</div>

How do I do those cuz I tried in javascript and it didn;t work for me

---

<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: [April 14, 2026, 5:41pm UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/45 "2026-04-14T17:41:40Z")

</div>

I have already implemented these in the extension this topic is for. The code is in here:

> <https://github.com/WoofWoofCodes/pxt-javascript-extras/blob/master/extras.ts>

lines 407 - 433:

```auto
    /**
     * Draws text on an image
     */
    //% block="Print text $text on $target at x $x y $y color $c font $font"
    //% blockId="extras_print_text"
    //% target.shadow=variables_get
    //% target.defl="picture"
    //% font.shadow="extras_font_selector"
    //% group="Text"
    export function print_block(text: string, target: Image, x: number, y: number, c: number = 1, font: image.Font) {
        target.print(text, x, y, c, font)
    }

    /**
     * Draws centered text on an image
     */
    //% block="Print centered (x) text $text on $target at y $y color $c font $font"
    //% blockId="extras_print_center_text"
    //% target.shadow=variables_get
    //% target.defl="picture"
    //% font.shadow="extras_font_selector"
    //% group="Text"
    //% weight=1
    export function printCenter_block(text: string, target: Image, y: number, c: number = 1, font: image.Font) {
        target.printCenter(text, y, c, font)
    }

```

You can copy this if you wish.

---

<div class="post-metadata">

### Author: ![TheEarth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theearth/32/34579_2.png) [@TheEarth](https://forum.makecode.com/u/TheEarth)
#### Post date: [April 15, 2026, 8:42pm UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/46 "2026-04-15T20:42:11Z")

</div>

Classes in blocks add it I dare you

---

<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: [April 15, 2026, 11:44pm UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/47 "2026-04-15T23:44:28Z")

</div>

It is not possible with the tools I have available, but you could try out the [Block Objects extension](https://forum.makecode.com/t/tutorial-what-are-block-objects-and-how-to-use-them/24274) for a similar effect.

---

<div class="post-metadata">

### Author: ![NeverStopTheCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neverstopthecoder/32/21194_2.png) [@NeverStopTheCoder](https://forum.makecode.com/u/NeverStopTheCoder)
#### Post date: [April 16, 2026, 10:11pm UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/48 "2026-04-16T22:11:21Z")

</div>

maybe the `public` and the `private` commands I don’t really know if its possible I don’t use them maybe also `const` or `var` maybe even `let` but maybe those two wolud be dumb maybe the `Buffer` command like `image.Buffer` if theses ones help

---

<div class="post-metadata">

### Author: ![NeverStopTheCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neverstopthecoder/32/21194_2.png) [@NeverStopTheCoder](https://forum.makecode.com/u/NeverStopTheCoder)
#### Post date: [April 16, 2026, 10:11pm UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/49 "2026-04-16T22:11:27Z")

</div>

oh also what about the fonts like font8,font5,font12 you can include scaledfont

---

<div class="post-metadata">

### Author: ![CodingGrizzlyBear](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codinggrizzlybear/32/14838_2.png) [@CodingGrizzlyBear](https://forum.makecode.com/u/CodingGrizzlyBear)
#### Post date: [April 16, 2026, 10:14pm UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/50 "2026-04-16T22:14:15Z")

</div>

Add

setTimeout(Function, 1000)

---

<div class="post-metadata">

### Author: ![Pixel-Fish](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pixel-fish/32/30565_2.png) [@Pixel-Fish](https://forum.makecode.com/u/Pixel-Fish)
#### Post date: [April 21, 2026, 6:08pm UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/51 "2026-04-21T18:08:03Z")

</div>

I may be missing something but the demo game doesn’t load, and even when I try to edit it, it doesn’t show the shaders

---

<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: [April 21, 2026, 6:49pm UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/52 "2026-04-21T18:49:05Z")

</div>

Yep! I can see that too. I’ll look into it.

---

<div class="post-metadata">

### Author: ![BLADEr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blader/32/16422_2.png) [@BLADEr](https://forum.makecode.com/u/BLADEr)
#### Post date: [April 22, 2026, 7:15pm UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/53 "2026-04-22T19:15:23Z")

</div>

Welcome to the forums, Pixel-Fish! I like your profile picture!

---

<div class="post-metadata">

### Author: ![Pixel-Fish](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pixel-fish/32/30565_2.png) [@Pixel-Fish](https://forum.makecode.com/u/Pixel-Fish)
#### Post date: [April 22, 2026, 10:13pm UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/54 "2026-04-22T22:13:14Z")

</div>

Hi, and thanks! I’ve been using makecode for a bit longer but just joined the forums some days ago, and I’ve already seen some really cool stuff here

---

<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: [April 23, 2026, 2:55am UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/55 "2026-04-23T02:55:00Z")

</div>

Do you mean image.ofBuffer? That would be the only one on this list that is possible to add.

---

<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: [April 23, 2026, 3:00am UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/56 "2026-04-23T03:00:08Z")

</div>

Ok, looks like this one should work:

> **[pxt-javascript-extras - Copy](https://arcade.makecode.com/S59613-44143-12427-37578)**
>
> Shader test project

Mods could you replace the seemingly broken link with this one? Thanks! \<3

---

<div class="post-metadata">

### Author: ![AlexK](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/alexk/32/33339_2.png) [@AlexK](https://forum.makecode.com/u/AlexK)
#### Post date: [April 23, 2026, 3:02am UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/57 "2026-04-23T03:02:16Z")

</div>

> [@WoofWoof](#):
>
> Mods could you replace the seemingly broken link with this one?

Roger that.

---

<div class="post-metadata">

### Author: ![NeverStopTheCoder](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neverstopthecoder/32/21194_2.png) [@NeverStopTheCoder](https://forum.makecode.com/u/NeverStopTheCoder)
#### Post date: [April 23, 2026, 5:11pm UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/58 "2026-04-23T17:11:25Z")

</div>

yeah because I think its pretty powerful with what I know it can do I think

---

<div class="post-metadata">

### Author: ![Pixel-Fish](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pixel-fish/32/30565_2.png) [@Pixel-Fish](https://forum.makecode.com/u/Pixel-Fish)
#### Post date: [April 23, 2026, 5:40pm UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/59 "2026-04-23T17:40:44Z")

</div>

It does! Given the ability to change the shadow colors I see a lot of potential in this

---

<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: [April 24, 2026, 1:58am UTC](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766/60 "2026-04-24T01:58:06Z")

</div>

Is there a reverse image to buffer function somewhere? Because I went as far as to look at @Sarge’s Better Settings extension to see how he stores images and he does it manually and doesn’t use ofBuffer at all…  
I will definitely have to investigate how it works because the few uses I tried didn’t quite work.

[Previous page](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766.md?page=2)

[Next page](https://forum.makecode.com/t/making-an-extension-for-every-javascript-exclusive-feature-i-can-think-of/36766.md?page=4)
