Discuss Scratch

gtoal
Scratcher
1000+ posts

Monochrome scratchblocks?

Has anyone done a scratchblocks version that draws the blocks in back & white and with only the block outlines rather than being area filled?

Maybe some variation of http://blob8108.github.io/scratchblocks2/ ?

I'ld like to be able to print scratch programs in black and white…

For personal purposes I know I can just print the scratchblocks source text but I'ld like to be able to include visual scratch code in monochrome kindle ebooks for example. Six shades of grey just doesn't do it for me.

thanks,

Graham
blob8108
Scratcher
1000+ posts

Monochrome scratchblocks?

Not that I know of.

I hacked together a quick fork that does this: github.com/blob8108/scratchblocks2/tree/mono

Screenshot

I'm not interested in maintaining it, so you'd better fork it if you want to do that.

tosh · slowly becoming a grown-up adult and very confused about it
gtoal
Scratcher
1000+ posts

Monochrome scratchblocks?

blob8108 wrote:

I hacked together a quick fork that does this: github.com/blob8108/scratchblocks2/tree/mono

Screenshot

I'm not interested in maintaining it, so you'd better fork it if you want to do that.

That's fantastic! Thanks!

I've downloaded the fork as a zip and I'm finding it quite educational looking at your code, but I haven't yet worked out how to run this version myself. Do I need to execute the whole build process or should it already work? The code in the zip file appears to be still pointing at the coloured version. (I'm invoking it like this: http://192.168.2.251/scratchblocks2-mono/build/test.html#if%20%3C%5B0%5D%20%3D%20%5B1%5D%3E )


Graham
blob8108
Scratcher
1000+ posts

Monochrome scratchblocks?

src/dev.html will work; you'll need to rebuild the rest. There's instructions in Dev-Readme.

tosh · slowly becoming a grown-up adult and very confused about it
gtoal
Scratcher
1000+ posts

Monochrome scratchblocks?

blob8108 wrote:

src/dev.html will work; you'll need to rebuild the rest. There's instructions in Dev-Readme.

Nice! works a treat, thanks again.

G

Powered by DjangoBB