cginternals / cginternals/libzeug

Inconsistent Color representation

Open
#111 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
16
Forks
12
PR merge metrics
No merged PRs in 30d

Description

This parsing

``` C++
Color Color::fromString(const std::string & string, bool * ok)
{
//[...]
if (hexString.size() == 6)
hexString = "FF" + hexString; // results in ARGB
//[...]
}
```

is inconsitent with the following functions

``` C++
unsigned int Color::rgba() const
```

``` C++
Color::Color(int red, int green, int blue, int alpha)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.