syntax = "proto3";
package common.v1;

import "buf/validate/validate.proto";

option csharp_namespace = "Messages.Common.V1";
option go_package = "github.com/cobotar/protocol/messages/common/v1";

// Represents a color. Where (1, 1, 1, 1) is solid white, (1, 0, 0, 0.5) is half transparent red, and so on.
message Color {
  float red = 1 [(buf.validate.field).float = {
    gte: 0
    lte: 1
  }]; // Ranging from [0:1]
  float green = 2; // Ranging from [0:1]
  float blue = 3; // Ranging from [0:1]
  float alpha = 4; // Ranging from [0:1] --> [transparent : opaque]
}
