Skip to content

VoxelVariant

Namespace Nfty.Core.Stats in assembly Nfty.Core.

public readonly struct VoxelVariant : IEquatable<VoxelVariant>

What a single variant's artwork does about transparency.

Constructors

VoxelVariant(string, string, string, int, int)

public VoxelVariant(string IngredientName, string VariantName, string VariantId, int Pixels, int Partial);

Parameters

  • IngredientName (string) - The layer the variant belongs to.
  • VariantName (string) - The variant's display name.
  • VariantId (string) - Its id — what --variant expects.
  • Pixels (int) - Total pixels in the image.
  • Partial (int) - Pixels whose alpha is neither fully opaque nor fully erased.

Properties

IngredientName

public string IngredientName { get; init; }

The layer the variant belongs to.

IsClean

public bool IsClean { get; }

Whether this variant voxelizes cleanly — every pixel wholly there or wholly absent.

Partial

public int Partial { get; init; }

Pixels whose alpha is neither fully opaque nor fully erased.

PartialPercent

public double PartialPercent { get; }

The share of the image that is only partly there, 0-100.

Pixels

public int Pixels { get; init; }

Total pixels in the image.

VariantId

public string VariantId { get; init; }

Its id — what --variant expects.

VariantName

public string VariantName { get; init; }

The variant's display name.