defines.anticolor module

A defines module for retrieving colors by name.

Extends the Factorio defines table.

See also

Usage

require('__stdlib__/stdlib/utils/defines/anticolor')

Tables

anticolor Returns white for dark colors or black for lighter colors.

Tables

# anticolor

Returns white for dark colors or black for lighter colors.

Fields:
  • green : (Color) defines.color.black
  • grey : (Color) defines.color.black
  • lightblue : (Color) defines.color.black
  • lightgreen : (Color) defines.color.black
  • lightgrey : (Color) defines.color.black
  • lightred : (Color) defines.color.black
  • orange : (Color) defines.color.black
  • white : (Color) defines.color.black
  • yellow : (Color) defines.color.black
  • black : (Color) defines.color.white
  • blue : (Color) defines.color.white
  • brown : (Color) defines.color.white
  • darkblue : (Color) defines.color.white
  • darkgreen : (Color) defines.color.white
  • darkgrey : (Color) defines.color.white
  • darkred : (Color) defines.color.white
  • pink : (Color) defines.color.white
  • purple : (Color) defines.color.white
  • red : (Color) defines.color.white