1 // Copyright 2019 Google LLC. 2 // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. 3 #include "tools/fiddle/examples.h" 4 // HASH=82f1a9b4c2b27aa547061786d1f33dab 5 REG_FIDDLE(RGBA4f_notequal1_operator, 256, 256, true, 0) { draw(SkCanvas * canvas)6void draw(SkCanvas* canvas) { 7 SkColor4f colorGray = { .5, .5, .5, 1 }; 8 SkColor4f colorNamedGray = SkColor4f::FromColor(SK_ColorGRAY); 9 SkDebugf("colorGray %c= colorNamedGray ", colorGray != colorNamedGray ? '!' : '='); 10 } 11 } // END FIDDLE 12