HexColor

Structin imageoptocompute-sdk-go v1.11.0View source
type HexColor struct {
R, G, B uint8
A float32
}

HexColor is a hex color

Fields

R

uint8

R, G, B are the amount of Red, Green, and Blue.

G

uint8

R, G, B are the amount of Red, Green, and Blue.

B

uint8

R, G, B are the amount of Red, Green, and Blue.

A

float32

A is the alpha and should range from 0 (transparent) to 1 (opaque).

Methods

func (h *HexColor) String() string

Returns

string