Wiki

Clone wiki

Love2D Light and Shadow Engine / love.light.newLight

Object

love.light

Abstract

light = love.light.newLight(world, x, y, red, green, blue)

Arguments

  • World world
  • float x (default: 0.0)
  • float y (default: 0.0)
  • byte red (default: 255)
  • byte green (default: 255)
  • byte blue (default: 255)

Return

Description

Create a new light object.

Updated