Skip to content

Gradients with negative phases acting weird #1334

@Rebble3000

Description

@Rebble3000

I've recently noticed that gradients with more than 2 colors appear incorrectly when their phase is below 0.
I don't think this is an intended feature, since the gradients do appear correctly when their phase is -0.0, but don't when their phase is -0.1.

How to reproduce

Compare the deserialization results of these inputs:
<gradient:#FF0000:#00FF00:#4444FF:-0.0>Hello, World! Lorem Ipsum</gradient> and
<gradient:#FF0000:#00FF00:#4444FF:-0.1>Hello, World! Lorem Ipsum</gradient>

My results both on paper-1.21.4-232 and on webui.advntr.dev:
Image

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