blob: a0a2b9c01b61e8ed6fd7b150f38ee5a7f63b452f [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@available(added=7)
library fuchsia.ui.types;
/// Represents a color. Interfaces that use this struct should document whether
/// or not the floats have been premultiplied by alpha. Range per channel is
/// usually between 0.0 and 1.0.
type ColorRgba = struct {
red float32;
green float32;
blue float32;
alpha float32;
};
/// Represents a color without alpha channel. Range per channel is usually
/// between 0.0 and 1.0.
type ColorRgb = struct {
red float32;
green float32;
blue float32;
};