1 /* 2 * Copyright 2021 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 package org.skia.androidkit; 9 10 public class Color { 11 private float mR, mG, mB, mA; 12 Color(float r, float g, float b, float a)13 public Color(float r, float g, float b, float a) { 14 mR = r; 15 mG = g; 16 mB = b; 17 mA = a; 18 } 19 Color()20 public Color() { 21 this(0, 0, 0, 1); 22 } 23 r()24 public float r() { return mR; } g()25 public float g() { return mG; } b()26 public float b() { return mB; } a()27 public float a() { return mA; } 28 setR(float r)29 public void setR(float r) { mR = r; } setG(float g)30 public void setG(float g) { mG = g; } setB(float b)31 public void setB(float b) { mB = b; } setA(float a)32 public void setA(float a) { mA = a; } 33 } 34