Skip to content

Comment on Show HN: Programming is easier than you think

Comments

Question: why is rect not centered on pen, as is circle?

chkasOP

Because it has a width and height.

So does circle shape. Yet it is centred on both, whereas rect shape is centred on neither.

chkasOP

I think it's more intuitive this way. When you draw a rectangle, you start with a corner point and then draw the width and height. With a circle, you go to the center and then draw it with a radius.

I think that's true only if one uses a compasses for circle. And that circle does not start with pen at centre. In easylang, it does.

In my opinion, the easylang positioning shoud not be based on any off-computer drawing process specific to the shape type, but on the result, consistently for all shape types. Only this meets e.g. the expectation that change to shape type retains position.

I wish your project every success.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.