Scratch Design Convertion

335 views
Skip to first unread message

Maciej Kociela

unread,
May 8, 2021, 12:10:47 PM5/8/21
to Blockly
Hey,

I build an application based on Blockly Library and now I would like to change block design.

Scratch Blockly did it really nice in their library.

Do you think there is a simple way to make the transition between Blockly to Scratch Blockly without creating everything from the beginning? 

Scratch Blockly Design:
scratch-blocks.png

Thank you for your help,
Maciek

Maciej Kociela

unread,
May 8, 2021, 12:35:56 PM5/8/21
to Blockly
Thanks to Beka comment:

I found PXT Blockly and it's great:

But I found there also information that Blockly Team is working on the "Scratch-like design" plugin. Is there anyone who knows some insides about that?

Thanks,
Maciek

Maciej Kociela

unread,
May 8, 2021, 3:20:15 PM5/8/21
to Blockly
After a quick research, I find out that PXT is not the best choice because you lose the functionality of Blockly plugins.

BUT

This resources are great!

They teach you how to create a "custom render" where you can add your own styling. I will investigate it more and inform future "Blocklers" what I achieved with it :D

Maciej Kociela

unread,
May 9, 2021, 7:26:32 AM5/9/21
to Blockly
If you would like to make Blockly design more like scratch you just need to add renderer 'zelos' :)

Blockly.inject('blocklyDiv', {
   'renderer': 'zelos'
});
Reply all
Reply to author
Forward
0 new messages