Skip to content

_getConvexHullForDrawable likely off by 1 pixel for non-integer sizes #208

@mzgoddard

Description

@mzgoddard

Expected Behavior

For the hull to match the underlying alpha component of the input image for both integer and non-integer sized images.

Actual Behavior

Silhouette and other ways to fetch the alpha information to build a Drawable's Hull needs to truncate or round up a skin's non-integer size so they can store a fixed number of pixels. If we fetch the info from those structures with a non-integer size vector, Silhouette automatically casts into its fixed size space. Some amount of the pixels fetched to build the hull will likely be shifted for non-integer sized skins.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions