Skip to content

Attempt at fixing rasterize returning negative values

Created by: daboross

The change here is simply to call .abs() on values before sending them to output. It doesn't seem like having negative values is ever what any consumer expects or is prepared to handle.

I'm not at all sure this is the best solution for what's happening, but it does fix the bug I was having.

See #37 (closed) for the issue this is addressing.

If anyone can think of a better solution for this, or a way to fix the underlying algorithm rather than just laying an absolute value on top of it, that would be greatly appreciated! This is a hacky fix from someone who doesn't know much low-level graphics programming.

Merge request reports