ScratchAddons / ScratchAddons

All-in-one browser extension for Scratch.
https://scratchaddons.com
GNU General Public License v3.0
716 stars 367 forks source link

Ruler tool #7249

Open Gitter7651 opened 8 months ago

Gitter7651 commented 8 months ago

Why this would be helpful

What if you need to add a sprite, say a sword that swings around a dome, but you need the diameter of that dome?

How this addon works

This would add a button to the costume editor, and how it would work is you click and hold from one point to another, and it would tell you the rounded distance between those two points in image editor squares.

Possible alternatives

No response

Additional context

Possible sprite..? costume2 (2)

BroJac5246 commented 8 months ago

Extremely similar to (but not a duplicate of) #7234.

Ideally these would be implemented together IMO.

DNin01 commented 8 months ago

I thought of a ruler tool for the stage (#7234), but not for the costume editor! Very good idea.

I like your ruler icon.

DNin01 commented 8 months ago

Angles, circle areas and circumferences, perimeters, and other information would also be very nice to be able to see.

Secret-chest commented 8 months ago

Maybe pixels? One square has 4 px.

DNin01 commented 8 months ago

Maybe pixels? One square has 4 px.

Like, stage steps? I think they might have meant stage steps, actually.

CST1229 commented 8 months ago

Like, stage steps? I think they might have meant stage steps, actually.

A stage step (if you mean like in the move 10 steps block) is a pixel.

DNin01 commented 8 months ago

Like, stage steps? I think they might have meant stage steps, actually.

A stage step (if you mean like in the move 10 steps block) is a pixel.

It depends on what you consider to be a pixel. There are actually two image pixels per stage step, IIRC - if you export a full-size bitmap costume, it'll measure 960x720 pixels.

Secret-chest commented 8 months ago

Like, stage steps? I think they might have meant stage steps, actually.

A stage step (if you mean like in the move 10 steps block) is a pixel.

It depends on what you consider to be a pixel. There are actually two image pixels per stage step, IIRC - if you export a full-size bitmap costume, it'll measure 960x720 pixels.

We can allow choosing the unit - bitmap pixels (0.5x stage pixel), stage pixels, editor squares (4x stage pixel)

This would go well with an addon that allows precisely reading and setting pixel positions and sizes of vector objects.

DNin01 commented 8 months ago

We can allow choosing the unit - bitmap pixels (0.5x stage pixel), stage pixels, editor squares (4x stage pixel)

Being able to set an exact number might be useful too. If you wanted to measure in units other than stage steps, it would save yourself from converting the units and then doing the math manually.

With the upcoming decimal setting type, this will be very possible.

This would go well with an addon that allows precisely reading and setting pixel positions and sizes of vector objects.

I can only begin to imagine how versatile this addon could be…