Hello!
I tried adding a color picker block that lets you choose a color without having to input a number ...
Like this:
However, this is what I got:
Here's my code ...
/**
* Color picker
*/
//% shim=TD_ID
//% blockId=fancy_text__colorPicker
//% block="$color"
//% color.shadow=colorindexpicker
//% group=Create
//% weight=0
//% help=github:arcade-fancy-text/docs/set-color
export function __colorPicker(color?: number): number {
return color;
}
I should mention that I’m using the “Fancy Text Sprite” extension as a template for this because I don’t want to make a brand new extension just for this block