raspberry pi 大活用...2020.9 67hello.jsとindex.htmの内 ない 容 よう をよく確 かく...
TRANSCRIPT
https://prog.kodomonokagaku.com/
index.htm Web
https://prog.kodomonokagaku.com/jibun/images/1808raspi.pdf
Text EditorF
scratch-gui/
https://prog.kodomonokagaku.com/jibun/images/1906raspi.pdf
getInfo() { … return { … id: 'koka', …ID name: 'KoKa', … blocks: [ … { opcode: 'power', … blockType: Scratch.BlockType.REPORTER, … text: '[X][N]', …XN arguments: { … X: { type: Scratch.ArgumentType.NUMBER, …X defaultValue: '2' …X2 }, N: { type: Scratch.ArgumentType.NUMBER, …N defaultValue: '3' …N3 } } } ] } }
power(args) { …opcodeargs return Math.pow(args.X, args.N); …Mathpow } }
Scratch.extensions.register(new KoKa()); …KoKa
KoKa
index.htm Web
https://prog.kodomonokagaku.com/jibun/images/1808raspi.pdf
Text EditorF
scratch-gui/
https://prog.kodomonokagaku.com/jibun/images/1906raspi.pdf
getInfo() { … return { … id: 'koka', …ID name: 'KoKa', … blocks: [ … { opcode: 'power', … blockType: Scratch.BlockType.REPORTER, … text: '[X][N]', …XN arguments: { … X: { type: Scratch.ArgumentType.NUMBER, …X defaultValue: '2' …X2 }, N: { type: Scratch.ArgumentType.NUMBER, …N defaultValue: '3' …N3 } } } ] } }
power(args) { …opcodeargs return Math.pow(args.X, args.N); …Mathpow } }
Scratch.extensions.register(new KoKa()); …KoKa
KoKa