GL demo: Use setColor instead of setARGB

setColor is a bit more readable

PiperOrigin-RevId: 584322875
This commit is contained in:
huangdarwin 2023-11-21 07:42:42 -08:00 committed by Copybara-Service
parent ec08db458e
commit 6c68146efa

View File

@ -63,7 +63,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
paint = new Paint();
paint.setTextSize(64);
paint.setAntiAlias(true);
paint.setARGB(0xFF, 0xFF, 0xFF, 0xFF);
paint.setColor(Color.WHITE);
textures = new int[1];
overlayBitmap = Bitmap.createBitmap(OVERLAY_WIDTH, OVERLAY_HEIGHT, Bitmap.Config.ARGB_8888);
overlayCanvas = new Canvas(overlayBitmap);