Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Olena
pylene
Commits
073e0d53
Commit
073e0d53
authored
Feb 06, 2015
by
Edwin Carlinet
Browse files
Add some color literals.
* mln/colors/literal.hpp: New literals.
parent
a81c893e
Changes
1
Hide whitespace changes
Inline
Side-by-side
mln/colors/literal.hpp
View file @
073e0d53
...
...
@@ -19,9 +19,14 @@ namespace mln
//using blue_t = literal_color<rgb8, rgb8{0,0,255}>;
namespace
{
constexpr
rgb8
black
{
0
,
0
,
0
};
constexpr
rgb8
red
{
255
,
0
,
0
};
constexpr
rgb8
green
{
0
,
255
,
0
};
constexpr
rgb8
blue
{
0
,
0
,
255
};
constexpr
rgb8
white
{
255
,
255
,
255
};
constexpr
rgb8
cyan
{
0
,
255
,
255
};
constexpr
rgb8
yellow
{
255
,
255
,
0
};
constexpr
rgb8
magenta
{
255
,
0
,
255
};
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment