<commit_before>#ifndef RADIUMENGINE_COLOR_PRESET_HPP_
#define RADIUMENGINE_COLOR_PRESET_HPP_

#include <Core/Math/LinearAlgebra.hpp>

namespace Ra{
    namespace Core{

        /// Colors are defined as vector4, i.e. 4 floats in RGBA order.
        /// displayable colors should have all their coordinates between 0 and 1.
        namespace Colors
        {
            // Primary and secondary colors.
            // TODO (Val) : check if we can make these constexpr
            inline Color Black() { return Color(0,0,0,1); }

            inline Color Red()   { return Color(1,0,0,1); }
            inline Color Green() { return Color(0,1,0,1); }
            inline Color Blue()  { return Color(0,0,1,1); }

            inline Color Yellow()  { return Color(1,1,0,1); }
            inline Color Magenta() { return Color(1,0,1,1); }
            inline Color Cyan()    { return Color(0,1,1,1); }

            inline Color White()   { return Color(1,1,1,1); }

            inline Color Grey( Scalar f = 0.5f) { return Color(f,f,f,1);}

            // Convert to/from various int formats
            inline Color FromChars(uchar r, uchar g, uchar b, uchar a = 0xff)
            {
                return Color(Scalar(r)/255.0f, Scalar(g)/255.0f, Scalar(b)/255.0f, Scalar(a)/255.0f );
            }

            inline Color FromRGBA32(uint32_t rgba)
            {
                uchar r = uchar((rgba >> 24) & 0xff);
                uchar g = uchar((rgba >> 16) & 0xff);
                uchar b = uchar((rgba >>  8) & 0xff);
                uchar a = uchar((rgba >>  0) & 0xff);
                return FromChars(r,g,b,a);
            }<commit_msg>Added the Alpha color static function<commit_after>#ifndef RADIUMENGINE_COLOR_PRESET_HPP_
#define RADIUMENGINE_COLOR_PRESET_HPP_

#include <Core/Math/LinearAlgebra.hpp>

namespace Ra{
    namespace Core{

        /// Colors are defined as vector4, i.e. 4 floats in RGBA order.
        /// displayable colors should have all their coordinates between 0 and 1.
        namespace Colors
        {
            // Primary and secondary colors.
            // TODO (Val) : check if we can make these constexpr
            inline Color Alpha() { return Color( 0.0, 0.0, 0.0, 0.0 ); }
            inline Color Black() { return Color(0,0,0,1); }

            inline Color Red()   { return Color(1,0,0,1); }
            inline Color Green() { return Color(0,1,0,1); }
            inline Color Blue()  { return Color(0,0,1,1); }

            inline Color Yellow()  { return Color(1,1,0,1); }
            inline Color Magenta() { return Color(1,0,1,1); }
            inline Color Cyan()    { return Color(0,1,1,1); }

            inline Color White()   { return Color(1,1,1,1); }

            inline Color Grey( Scalar f = 0.5f) { return Color(f,f,f,1);}

            // Convert to/from various int formats
            inline Color FromChars(uchar r, uchar g, uchar b, uchar a = 0xff)
            {
                return Color(Scalar(r)/255.0f, Scalar(g)/255.0f, Scalar(b)/255.0f, Scalar(a)/255.0f );
            }

            inline Color FromRGBA32(uint32_t rgba)
            {
                uchar r = uchar((rgba >> 24) & 0xff);
                uchar g = uchar((rgba >> 16) & 0xff);
                uchar b = uchar((rgba >>  8) & 0xff);
                uchar a = uchar((rgba >>  0) & 0xff);
                return FromChars(r,g,b,a);
            }
{'fraction_non_alphanumeric': 0.12459403602007676, 'fraction_numerical': 0.04369648656628285, 'mean_word_length': 1.8280467445742905, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2465542', 'n_tokens_mistral': 1163, 'n_tokens_neox': 1051, 'n_words': 298}