Show / Hide Table of Contents

Class NamedColor

Wrapper for ByteColor that contains named of base, shade index and result color

Inheritance
System.Object
NamedColor
Namespace: Eco.Shared.Graphics
Assembly: Eco.Shared.dll
Syntax
[Serialized]
public sealed class NamedColor : ValueType

Constructors

NamedColor(String, ByteColor)

Declaration
public NamedColor(string name, ByteColor color)
Parameters
Type Name Description
System.String name
ByteColor color

Fields

Blend

Declaration
public int Blend
Field Value
Type Description
System.Int32

Color

Declaration
public ByteColor Color
Field Value
Type Description
ByteColor

Name

Declaration
public string Name
Field Value
Type Description
System.String

Methods

GetBlend()

Declaration
public string GetBlend()
Returns
Type Description
System.String

GetDisplayName()

Returns variant name for display. Like "Teal #12" etc. For 0 index returns just name without shade index.

Declaration
public LocString GetDisplayName()
Returns
Type Description
LocString

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾