Skip to content

definition of perimeter / "shared pixels" #5023

@innoticFR

Description

@innoticFR

Hi everyone,

I think the current definition of "perimeter" mixes-up the properties of a boundary line with surface area calculations. Furthermore, the area calculation provided (4h+4w) assumes the stroke is placed on the outside without explicitly stating this alignment.

Here's how I think this would be more explicit:

Proposed Definition:

delete "not including shared pixels" (unless I misunderstood * what it meant for)

"Continuous line forming the boundary of a shape, or the minimum bounding box, whichever is shortest."

Associated first Note:

"The surface area calculation for a 2 CSS px perimeter is performed by considering the area in px occupied by the perimeter and the outer line. During calculations, pixels must be included only once."

Proposed Revision for the current Note :

The area calculation for a 2 CSS pixel perimeter ....

I'm not sure if this is the best way to word it, but there might be other possibilities...

* Note: 4h+4w is the area of a 2 CSS pixel outer perimeter, counting each corner area only once (which is different from "excluding" them). However, the term "shared pixels" could also be interpreted as pixels belonging to other adjacent elements, which is not clear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions