material

package module
v0.0.5-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

README

Material

[!CAUTION] This is highly experimental 🧪 and expect breaking changes

Pure go implementation of Material Color Utilities

License

This project is licensed under the Apache License, Version 2.0. It includes code derived from Material Color Utilities by Google LLC, originally licensed under the Apache License 2.0.

See the NOTICE file for details and third-party attributions.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoColorFound = errors.New("no color found")

Functions

This section is empty.

Types

type Colors

type Colors = map[string]color.ARGB

Colors is key and color

func GenerateFromImage

func GenerateFromImage(
	img image.Image,
	variant dynamic.Variant,
	dark bool,
	constrast float64,
	platform dynamic.Platform,
	version dynamic.Version,
) (Colors, error)

GenerateFromImage colors from an image.Image

func GenerateFromPixels

func GenerateFromPixels(
	pixels []color.ARGB,
	variant dynamic.Variant,
	dark bool,
	constrast float64,
	platform dynamic.Platform,
	version dynamic.Version,
) (Colors, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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