samples

package
v0.0.0-...-a625e7b Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package samples defines different kind of definitions for cloth samples

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

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

Color describes a sample that is just filled with particular color

func (*Color) ID

func (s *Color) ID() string

ID returns identifier

func (*Color) Image

func (s *Color) Image() image.Image

Image generates 0px image of the given color

type File

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

File describes sample that is stored in a file

func (*File) ID

func (s *File) ID() string

ID returns identifier

func (*File) Image

func (s *File) Image() image.Image

Image returns image data

func (*File) Import

func (s *File) Import(path string) error

Import reads file and sets respective variables

Jump to

Keyboard shortcuts

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