Rescale block in Snap!

MicroBlocks has the Rescale block
image

So I could put a potentiometer value in from 0, 1023 and rescale it to 0, 100 or for instance -170, 170 to use those values. Really powerful.

Is there a similar block in Snap!. I looked but couldn't find it. I got the idea after the presentation from John Maloney at SnapCon

I connected my PicoBricks board to Snap! and that works.


Used the following library and blocks in MicroBlocks.

And was able to read the values in Snap! when i changed some things in the MicroBlocks library.

I would like to use the potentiometer to control the sprite and I can get it to work but i would love to have a rescale block.

Do you mean, like this?


I, personally, am fond of @loucheman’s

That's it. Thank you very much. :+1:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.