““I’m using a translation app, sorry if it’s hard to understand””
Here is the code ( There is some Japanese in it, but please don’t mind. )
/**
-
名前
*/
//% weight=0 color=#FFA500 icon=“\uf007”
namespace 名前 {
let currentName = “”; // 名前を格納する変数/**
- 名前を設定する
- @param n 設定する名前
*/
//% block=“名前を %n にする”
//% blockId=setNameBlock
export function setName(n: string): void {
currentName = n;
}
/**
- 現在の名前を取得
*/
//% block=“名前”
//% blockId=getNameBlock
export function getName(): string {
return currentName;
}
}
Please tell me how to create an image that can be loaded using the file extension.