Lines Matching refs:rgb2hsv
1112 ASSERT_TRUE(tools::rgb2hsv(maWhite) == BColor(0,0,1)) << "white"; in TEST_F()
1113 ASSERT_TRUE(tools::rgb2hsv(maBlack) == BColor(0,0,0)) << "black"; in TEST_F()
1114 ASSERT_TRUE(tools::rgb2hsv(maRed) == BColor(0,1,1)) << "red"; in TEST_F()
1115 ASSERT_TRUE(tools::rgb2hsv(maGreen) == BColor(120,1,1)) << "green"; in TEST_F()
1116 ASSERT_TRUE(tools::rgb2hsv(maBlue) == BColor(240,1,1)) << "blue"; in TEST_F()
1117 ASSERT_TRUE(tools::rgb2hsv(maYellow) == BColor(60,1,1)) << "yellow"; in TEST_F()
1118 ASSERT_TRUE(tools::rgb2hsv(maMagenta) == BColor(300,1,1)) << "magenta"; in TEST_F()
1119 ASSERT_TRUE(tools::rgb2hsv(maCyan) == BColor(180,1,1)) << "cyan"; in TEST_F()
1121 ASSERT_TRUE(tools::hsv2rgb(tools::rgb2hsv(maWhite)) == maWhite) << "roundtrip white"; in TEST_F()
1122 ASSERT_TRUE(tools::hsv2rgb(tools::rgb2hsv(maBlack)) == maBlack) << "roundtrip black"; in TEST_F()
1123 ASSERT_TRUE(tools::hsv2rgb(tools::rgb2hsv(maRed)) == maRed) << "roundtrip red"; in TEST_F()
1124 ASSERT_TRUE(tools::hsv2rgb(tools::rgb2hsv(maGreen)) == maGreen) << "roundtrip green"; in TEST_F()
1125 ASSERT_TRUE(tools::hsv2rgb(tools::rgb2hsv(maBlue)) == maBlue) << "roundtrip blue"; in TEST_F()
1126 ASSERT_TRUE(tools::hsv2rgb(tools::rgb2hsv(maYellow)) == maYellow) << "roundtrip yellow"; in TEST_F()
1127 ASSERT_TRUE(tools::hsv2rgb(tools::rgb2hsv(maMagenta)) == maMagenta) << "roundtrip magenta"; in TEST_F()
1128 ASSERT_TRUE(tools::hsv2rgb(tools::rgb2hsv(maCyan)) == maCyan) << "roundtrip cyan"; in TEST_F()
1130 ASSERT_TRUE(tools::rgb2hsv(maWhite*.1) == BColor(0,0,.1)) << "grey10"; in TEST_F()
1131 ASSERT_TRUE(tools::rgb2hsv(maWhite*.9) == BColor(0,0,.9)) << "grey90"; in TEST_F()
1132 ASSERT_TRUE(tools::rgb2hsv(maRed*.5) == BColor(0,1,0.5)) << "red/2"; in TEST_F()
1133 ASSERT_TRUE(tools::rgb2hsv(maGreen*.5) == BColor(120,1,0.5)) << "green/2"; in TEST_F()
1134 ASSERT_TRUE(tools::rgb2hsv(maBlue*.5) == BColor(240,1,0.5)) << "blue/2"; in TEST_F()
1135 ASSERT_TRUE(tools::rgb2hsv(maYellow*.5) == BColor(60,1,0.5)) << "yellow/2"; in TEST_F()
1136 ASSERT_TRUE(tools::rgb2hsv(maMagenta*.5) == BColor(300,1,0.5)) << "magenta/2"; in TEST_F()
1137 ASSERT_TRUE(tools::rgb2hsv(maCyan*.5) == BColor(180,1,0.5)) << "cyan/2"; in TEST_F()
1139 ASSERT_TRUE(tools::rgb2hsv(BColor(.5,.25,.25)) == BColor(0,.5,.5)) << "pastel"; in TEST_F()