Documentation ¶
Index ¶
- Constants
- func CreateColor(ctx context.Context, args ...object.Object) object.Object
- func Module() *object.Module
- func Set(ctx context.Context, args ...object.Object) object.Object
- func Unset(ctx context.Context, args ...object.Object) object.Object
- type Color
- func (c *Color) Cost() int
- func (c *Color) Equals(other object.Object) object.Object
- func (c *Color) GetAttr(name string) (object.Object, bool)
- func (c *Color) Inspect() string
- func (c *Color) Interface() interface{}
- func (c *Color) IsTruthy() bool
- func (c *Color) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (c *Color) SetAttr(name string, value object.Object) error
- func (c *Color) Type() object.Type
- func (c *Color) Value() *color.Color
Constants ¶
View Source
const COLOR object.Type = "color.color"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Color ¶
type Color struct {
// contains filtered or unexported fields
}
func (*Color) RunOperation ¶
Click to show internal directories.
Click to hide internal directories.