Skip to content
Snippets Groups Projects
Commit a23f6053 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[App] Color; Replace overload with defaulted arg.

parent a9a6b6f9
No related branches found
No related tags found
No related merge requests found
...@@ -18,11 +18,6 @@ ...@@ -18,11 +18,6 @@
namespace DataHolderLib { namespace DataHolderLib {
Color createColor(unsigned char r, unsigned char g, unsigned char b)
{
return Color{{r,g,b,255}};
}
Color createColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a) Color createColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a)
{ {
return Color{{r,g,b,a}}; return Color{{r,g,b,a}};
......
...@@ -23,9 +23,10 @@ namespace DataHolderLib ...@@ -23,9 +23,10 @@ namespace DataHolderLib
{ {
using Color = std::array<unsigned char, 4>; using Color = std::array<unsigned char, 4>;
Color createColor(unsigned char r, unsigned char g, unsigned char b); Color createColor(unsigned char r,
unsigned char g,
Color createColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a); unsigned char b,
unsigned char a = 255);
/// Returns a random RGB colour. /// Returns a random RGB colour.
Color getRandomColor(); Color getRandomColor();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment