Home
last modified time | relevance | path

Searched refs:Hsv (Results 1 – 25 of 389) sorted by relevance

12345678910>>...16

/dports/graphics/aseprite/aseprite-1.2.9/src/gfx/
H A Dhsv_tests.cpp34 TEST(Hsv, Ctor) in TEST() argument
42 EXPECT_EQ(Hsv(0, 0, 0), Hsv()); in TEST()
47 EXPECT_EQ(Hsv( 0.0, 0.00, 0.00), Hsv(Rgb( 0, 0, 0))); in TEST()
48 EXPECT_EQ(Hsv( 0.0, 1.00, 0.01), Hsv(Rgb( 3, 0, 0))); in TEST()
49 EXPECT_EQ(Hsv( 0.0, 1.00, 0.99), Hsv(Rgb(252, 0, 0))); in TEST()
50 EXPECT_EQ(Hsv( 0.0, 1.00, 1.00), Hsv(Rgb(255, 0, 0))); in TEST()
51 EXPECT_EQ(Hsv( 60.0, 1.00, 0.75), Hsv(Rgb(191, 191, 0))); in TEST()
52 EXPECT_EQ(Hsv(120.0, 1.00, 0.50), Hsv(Rgb( 0, 128, 0))); in TEST()
53 EXPECT_EQ(Hsv(120.0, 1.00, 1.00), Hsv(Rgb( 0, 255, 0))); in TEST()
54 EXPECT_EQ(Hsv(180.0, 0.50, 1.00), Hsv(Rgb(128, 255, 255))); in TEST()
[all …]
H A Drgb_tests.cpp71 EXPECT_EQ(Rgb(255, 255, 255), Rgb(Hsv(hue, 0.000, 1.000))); in TEST()
72 EXPECT_EQ(Rgb(128, 128, 128), Rgb(Hsv(hue, 0.000, 0.500))); in TEST()
73 EXPECT_EQ(Rgb( 0, 0, 0), Rgb(Hsv(hue, 0.000, 0.000))); in TEST()
76 EXPECT_EQ(Rgb( 3, 0, 0), Rgb(Hsv( 0.0, 1.000, 0.010))); in TEST()
77 EXPECT_EQ(Rgb(252, 0, 0), Rgb(Hsv( 0.0, 1.000, 0.990))); in TEST()
78 EXPECT_EQ(Rgb(255, 0, 0), Rgb(Hsv( 0.0, 1.000, 1.000))); in TEST()
79 EXPECT_EQ(Rgb(191, 191, 0), Rgb(Hsv( 60.0, 1.000, 0.750))); in TEST()
80 EXPECT_EQ(Rgb( 0, 128, 0), Rgb(Hsv(120.0, 1.000, 0.500))); in TEST()
81 EXPECT_EQ(Rgb( 0, 255, 0), Rgb(Hsv(120.0, 1.000, 1.000))); in TEST()
82 EXPECT_EQ(Rgb(128, 255, 255), Rgb(Hsv(180.0, 0.500, 1.000))); in TEST()
[all …]
H A Dhsv.h17 class Hsv {
19 Hsv() in Hsv() function
25 Hsv(double hue, double saturation, double value);
27 Hsv(const Hsv& hsv) in Hsv() function
34 explicit Hsv(const Rgb& rgb);
63 bool operator==(const Hsv& other) const {
69 bool operator!=(const Hsv& other) const {
H A Dhsv.cpp19 Hsv::Hsv(double hue, double saturation, double value) in Hsv() function in gfx::Hsv
30 Hsv::Hsv(const Rgb& rgb) in Hsv() function in gfx::Hsv
74 int Hsv::hueInt() const in hueInt()
79 int Hsv::saturationInt() const in saturationInt()
84 int Hsv::valueInt() const in valueInt()
/dports/textproc/cast2gif/cast2gif-0.1.0/cargo-crates/palette-0.5.0/src/
H A Dhsv.rs84 Hsv { in new()
100 Hsv { in with_wp()
159 Hsv { in from_rgb_internal()
169 Hsv { in reinterpret_as()
253 Hsv { in from()
278 Hsv { in from()
349 Hsv { in mix()
442 impl<S, T> Add<Hsv<S, T>> for Hsv<S, T> implementation
476 impl<S, T> AddAssign<Hsv<S, T>> for Hsv<S, T> implementation
500 impl<S, T> Sub<Hsv<S, T>> for Hsv<S, T> implementation
[all …]
H A Dconvert.rs4 use {Component, Limited, Hsl, Hsv, Hwb, Lab, Lch, Xyz, Yxy};
255 Self::from_hsv(Hsv::<S, T>::from_hwb(inp)) in from_hwb()
488 Hsv::from_rgb(rgb) in into_hsv()
493 let hsv: Hsv<S, T> = self.into_hsv(); in into_hwb()
700 Hsv::$from_fn(self)
743 Hsv::$from_fn(self)
758 impl_into_color_rgb!(Hsv, from_hsv);
769 use {Hsl, Hsv, Hwb, Lab, Lch, Xyz, Yxy};
853 let hsv: Hsv<_, f64> = Default::default(); in from_with_xyz()
873 let _hsv: Hsv<_, f64> = color.into(); in into_with_xyz()
[all …]
/dports/lang/rust/rustc-1.58.1-src/src/doc/book/listings/ch18-patterns-and-matching/listing-18-16/src/
H A Dmain.rs3 Hsv(i32, i32, i32), enumerator
14 let msg = Message::ChangeColor(Color::Hsv(0, 160, 255)); in main()
21 Message::ChangeColor(Color::Hsv(h, s, v)) => println!( in main()
/dports/graphics/R-cran-farver/farver/src/
H A DConversion.h14 struct Hsv;
95 struct IConverter<Hsv> {
96 static void ToColorSpace(Rgb *color, Hsv *item);
97 static void ToColor(Rgb *color, Hsv *item);
99 typedef IConverter<Hsv> HsvConverter;
H A DColorSpace.cpp251 Hsv::Hsv() {} in Hsv() function in ColorSpace::Hsv
252 Hsv::Hsv(double h, double s, double v) : h(h), s(s), v(v) { in Hsv() function in ColorSpace::Hsv
255 Hsv::Hsv(int h, int s, int v) : h(h), s(s), v(v) { in Hsv() function in ColorSpace::Hsv
258 void Hsv::Initialize(Rgb *color) { in Initialize()
261 void Hsv::ToRgb(Rgb *color) { in ToRgb()
264 void Hsv::Copy(IColorSpace *color) { in Copy()
265 Hsv *hsv = static_cast<Hsv*>(color); in Copy()
271 void Hsv::Cap() { in Cap()
/dports/devel/gh/cli-2.4.0/vendor/github.com/lucasb-eyer/go-colorful/
H A Dcolorgens.go11 return Hsv(
35 return Hsv(
/dports/devel/lazygit/lazygit-0.31.4/vendor/github.com/lucasb-eyer/go-colorful/
H A Dcolorgens.go11 return Hsv(
35 return Hsv(
/dports/devel/lab/lab-0.17.2/vendor/github.com/lucasb-eyer/go-colorful/
H A Dcolorgens.go11 return Hsv(
35 return Hsv(
/dports/net-im/tut/tut-0.0.17/vendor/github.com/lucasb-eyer/go-colorful/
H A Dcolorgens.go11 return Hsv(
35 return Hsv(
/dports/misc/lf/lf-r26/vendor/github.com/lucasb-eyer/go-colorful/
H A Dcolorgens.go11 return Hsv(
35 return Hsv(
/dports/sysutils/chezmoi/chezmoi-2.9.3/vendor/github.com/lucasb-eyer/go-colorful/
H A Dcolorgens.go11 return Hsv(
35 return Hsv(
/dports/www/beehive/beehive-0.4.0/vendor/github.com/lucasb-eyer/go-colorful/
H A Dcolorgens.go11 return Hsv(
35 return Hsv(
/dports/devel/lazygit/lazygit-0.31.4/vendor/github.com/lucasb-eyer/go-colorful/go-colorful-1.2.0/
H A Dcolorgens.go11 return Hsv(
35 return Hsv(
/dports/editors/micro/micro-2.0.10/vendor/github.com/lucasb-eyer/go-colorful/
H A Dcolorgens.go11 return Hsv(
35 return Hsv(
/dports/mail/aerc/aerc-0.4.0/vendor/github.com/lucasb-eyer/go-colorful/
H A Dcolorgens.go11 return Hsv(
35 return Hsv(
/dports/games/neo-cowsay/Neo-cowsay-2.0.1/vendor/github.com/lucasb-eyer/go-colorful/
H A Dcolorgens.go11 return Hsv(
35 return Hsv(
/dports/textproc/up/up-0.4/vendor/github.com/lucasb-eyer/go-colorful/
H A Dcolorgens.go11 return Hsv(
35 return Hsv(
/dports/devel/gitty/gitty-0.3.0/vendor/github.com/lucasb-eyer/go-colorful/
H A Dcolorgens.go11 return Hsv(
35 return Hsv(
/dports/net/termshark/termshark-2.1.1/vendor/github.com/lucasb-eyer/go-colorful/
H A Dcolorgens.go11 return Hsv(
35 return Hsv(
/dports/audio/pms-devel/pms-c94e3c6/vendor/github.com/lucasb-eyer/go-colorful/
H A Dcolorgens.go11 return Hsv(
35 return Hsv(
/dports/benchmarks/ali/ali-0.7.5/vendor/github.com/lucasb-eyer/go-colorful/
H A Dcolorgens.go11 return Hsv(
35 return Hsv(

12345678910>>...16