Skip to content

Mojo graphics canvas addlight

mojo:mojo.graphics.Canvas.AddLight

Method AddLight:Void( light:Image,tx:Float,ty:Float )#
Method AddLight:Void( light:Image,tx:Float,ty:Float,rz:Float )#
Method AddLight:Void( light:Image,tx:Float,ty:Float,rz:Float,sx:Float,sy:Float )#
Method AddLight:Void( light:Image,tv:std.geom.Vec2f )#
Method AddLight:Void( light:Image,tv:std.geom.Vec2f,rz:Float )#
Method AddLight:Void( light:Image,tv:std.geom.Vec2f,rz:Float,sv:std.geom.Vec2f )#

Adds a light to the canvas.

This method must only be called while the canvas is in lighting mode, ie: between calls to BeginLighting and EndLighting.