godot/core/math/color.cpp

/**************************************************************************/
/*  color.cpp                                                             */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#include "color.h"

#include "color_names.inc"
#include "core/math/math_funcs.h"
#include "core/string/ustring.h"
#include "core/templates/hash_map.h"

#include "thirdparty/misc/ok_color.h"

uint32_t Color::to_argb32() const {}

uint32_t Color::to_abgr32() const {}

uint32_t Color::to_rgba32() const {}

uint64_t Color::to_abgr64() const {}

uint64_t Color::to_argb64() const {}

uint64_t Color::to_rgba64() const {}

String _to_hex(float p_val) {}

String Color::to_html(bool p_alpha) const {}

float Color::get_h() const {}

float Color::get_s() const {}

float Color::get_v() const {}

void Color::set_hsv(float p_h, float p_s, float p_v, float p_alpha) {}

void Color::set_ok_hsl(float p_h, float p_s, float p_l, float p_alpha) {}

bool Color::is_equal_approx(const Color &p_color) const {}

Color Color::clamp(const Color &p_min, const Color &p_max) const {}

void Color::invert() {}

Color Color::hex(uint32_t p_hex) {}

Color Color::hex64(uint64_t p_hex) {}

static int _parse_col4(const String &p_str, int p_ofs) {}

static int _parse_col8(const String &p_str, int p_ofs) {}

Color Color::inverted() const {}

Color Color::html(const String &p_rgba) {}

bool Color::html_is_valid(const String &p_color) {}

Color Color::named(const String &p_name) {}

Color Color::named(const String &p_name, const Color &p_default) {}

int Color::find_named_color(const String &p_name) {}

int Color::get_named_color_count() {}

String Color::get_named_color_name(int p_idx) {}

Color Color::get_named_color(int p_idx) {}

// For a version that errors on invalid values instead of returning
// a default color, use the Color(String) constructor instead.
Color Color::from_string(const String &p_string, const Color &p_default) {}

Color Color::from_hsv(float p_h, float p_s, float p_v, float p_alpha) {}

Color Color::from_rgbe9995(uint32_t p_rgbe) {}

operator String()

Color Color::operator+(const Color &p_color) const {}

void Color::operator+=(const Color &p_color) {}

Color Color::operator-(const Color &p_color) const {}

void Color::operator-=(const Color &p_color) {}

Color Color::operator*(const Color &p_color) const {}

Color Color::operator*(float p_scalar) const {}

void Color::operator*=(const Color &p_color) {}

void Color::operator*=(float p_scalar) {}

Color Color::operator/(const Color &p_color) const {}

Color Color::operator/(float p_scalar) const {}

void Color::operator/=(const Color &p_color) {}

void Color::operator/=(float p_scalar) {}

Color Color::operator-() const {}

Color Color::from_ok_hsl(float p_h, float p_s, float p_l, float p_alpha) {}

float Color::get_ok_hsl_h() const {}

float Color::get_ok_hsl_s() const {}

float Color::get_ok_hsl_l() const {}