Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IOpacity<T>

Provides a set of aliases that must be implemented in classes that extend the interface. These provide helpful named properties for accessing the divisions in the context of opacity

example
Strawman example ```ts const opacity = new Opacity(); opacity.transparent; // -> 0; opacity.translucent; // -> ~0.3; opacity.semi; // -> 0.5; opacity.cloudy; // -> ~0.7; opacity.opaque; // -> 1; ```

Type parameters

  • T

Hierarchy

Implemented by

Index

Properties

cloudy

cloudy: T

Usually accesses division 700

opaque

opaque: T

Usually accesses division 900

semi

semi: T

Usually accesses division 500

translucent

translucent: T

Usually accesses division 300

transparent

transparent: T

Usually accesses division 100