Skip to content

[FEATURE] set alpha to 'ff' by default in SKColor(UInt32) constructor  #2274

@beto-rodriguez

Description

@beto-rodriguez

Is your feature request related to a problem? Please describe.

Based on Live-Charts/LiveCharts2#602

When a SKColor is created using the uint constructor the alpha channel is 0 by default.

var a = new SKColor(0xD65282);
var b = new SKColor(0xFFD65282);

var alphaEquals = a.Alpha == b.Alpha ;
// should be true by default?

Describe the solution you'd like

It would be more intuitive that the alpha channel is 255 instead of zero when it is not specified.

Describe alternatives you've considered

Set the alpha channel manually.

Additional context

none.

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