Extensions won't delete and it's messing with project

I made an extension that adds new palettes to the color extension, but when I enter it into my project it stops working. I’ve tried to delete it in java script but it won’t delete. the extension is called arcade-night-palettes


The problem seems to be here… I am not seeing any new colour palettes though.

2 Likes

Ok nevermind I found aa backup project but I’m wondering if there is a way to make custom palettes in the color fading extension; I want to be able to fade between four palettes:
Original,
Sunset,
Evening,
and Night.

Is there a way to add custom palettes to the color fading extension? @richard would you know how to do this?

@eugeneredwing8 you can if you go to javascript, click the plus button on top of the file explorer to add a custom ts file, and put this in it:

namespace color {
    //% fixedInstance whenUsed block="my palette"
    export const myPalette= bufferToPalette(hex`
        000000
        17ABFF
        DF2929
        C600FF
        FF007D
        00FF72
        e5FF00
        0034FF
        FFFFFF
        00EFFF
        FF0000
        7400DB
        636363
        FF7a00
        2D9F00
        000000
    `);
}

but save your project before doing that!

1 Like

It doesn’t cause any problems, the project runs fine, but the palette doesn’t show up in the list.

share your project

1 Like

Well, now it keeps giving me this error before I even create the file: “Package not installed: this, did you forget to run pxt install?”

@eugeneredwing8 if you send me a share link i can help

2 Likes

@eugeneredwing8 i’ve added the file in this version of the project:

note the “my palette” entry in the color fading dropdown.

if you want to add more palettes, go to javascript and click on “custom.ts” in the file explorer:

and declare the palettes in the file just like the one i already added (but with different names). the //% block="" annotation can be used to change the name that appears in the dropdown

1 Like

Caught in 4k

1 Like