color

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const COLOR object.Type = "color.color"

Variables

This section is empty.

Functions

func CreateColor

func CreateColor(ctx context.Context, args ...object.Object) object.Object

func Module

func Module() *object.Module

func Set

func Set(ctx context.Context, args ...object.Object) object.Object

func Unset

func Unset(ctx context.Context, args ...object.Object) object.Object

Types

type Color

type Color struct {
	// contains filtered or unexported fields
}

func NewColor

func NewColor(v *color.Color) *Color

func (*Color) Cost

func (c *Color) Cost() int

func (*Color) Equals

func (c *Color) Equals(other object.Object) object.Object

func (*Color) GetAttr

func (c *Color) GetAttr(name string) (object.Object, bool)

func (*Color) Inspect

func (c *Color) Inspect() string

func (*Color) Interface

func (c *Color) Interface() interface{}

func (*Color) IsTruthy

func (c *Color) IsTruthy() bool

func (*Color) RunOperation

func (c *Color) RunOperation(opType op.BinaryOpType, right object.Object) object.Object

func (*Color) SetAttr

func (c *Color) SetAttr(name string, value object.Object) error

func (*Color) Type

func (c *Color) Type() object.Type

func (*Color) Value

func (c *Color) Value() *color.Color

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL