Skip links

  • Skip to primary navigation
  • Skip to content
  • Skip to footer
Hugo By Example
  • Main Page
  • About
  • Index
    • Main Page
    • Introduction
    • Getting Started
    • Hugo Games
    • Index

    light_source

    light_source is a hugolib.h-defined global variable. The routines FindLight or ObjectIsLight look for objects providing light, setting light_source to the first one found. If nothing is found, light_source equals 0, and routines like PrintStatusLine print “In the dark” instead of the location name.

    Categories: Global Variables

    © 2025 Hugo By Example (CC BY). Powered by Jekyll & Minimal Mistakes.
    GitHub repository