love.graphics.getCanvas

love.graphics.getCanvas Available since LÖVE 0.8.0 This function is not supported in earlier versions. Gets the current target Canvas. Function Synopsis canvas = love.graphics.getCanvas( ) Arguments None. Returns Canvas canvas The Canvas set by setCanvas. Returns nil if drawing to the real screen. See Also love.graphics Canvas love.graphics.setCanvas

love.graphics.getCanvasFormats

love.graphics.getCanvasFormats Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the available Canvas formats, and whether each is supported. Function Synopsis formats = love.graphics.getCanvasFormats( ) Arguments None. Returns table formats A table containing CanvasFormats as keys, and a boolean indicating whether the format is supported as values. Not all systems support all formats. Examples Create a canvas with the format 'rgba16f' if it is support

love.graphics.getCaption

love.graphics.getCaption Removed in LÖVE 0.9.0 Moved to the love.window module as love.window.getTitle. Gets the window caption. Function Synopsis caption = love.graphics.getCaption( ) Arguments None. Returns string caption The current window caption. See Also love.graphics love.graphics.setCaption

love.graphics.getColor

love.graphics.getColor Gets the current color. Function Synopsis r, g, b, a = love.graphics.getColor( ) Arguments None. Returns number r The red component (0-255). number g The green component (0-255). number b The blue component (0-255). number a The alpha component (0-255). See Also love.graphics

love.graphics.getColorMask

love.graphics.getColorMask Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the active color components used when drawing. Normally all 4 components are active unless love.graphics.setColorMask has been used. The color mask determines whether individual components of the colors of drawn objects will affect the color of the screen. They affect love.graphics.clear and Canvas:clear as well. Function Synopsis r, g, b, a = love.graphics.getColorMask( ) Argume

love.graphics.getColorMode

love.graphics.getColorMode Available since LÖVE 0.2.0 and removed in LÖVE 0.9.0 This function is not supported in earlier or later versions. Gets the color mode (which controls how images are affected by the current color). Function Synopsis mode = love.graphics.getColorMode( ) Arguments None. Returns ColorMode mode The current color mode. See Also love.graphics love.graphics.setColorMode

love.graphics.getCompressedImageFormats

love.graphics.getCompressedImageFormats Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the available compressed image formats, and whether each is supported. Function Synopsis formats = love.graphics.getCompressedImageFormats( ) Arguments None. Returns table formats A table containing CompressedImageFormats as keys, and a boolean indicating whether the format is supported as values. Not all systems support all formats. Examples Display a list of the

love.graphics.getDefaultFilter

love.graphics.getDefaultFilter Available since LÖVE 0.9.0 It has been renamed from love.graphics.getDefaultImageFilter. Returns the default scaling filters used with Images, Canvases, and Fonts. Function Synopsis min, mag, anisotropy = love.graphics.getDefaultFilter( ) Arguments None. Returns FilterMode min Filter mode used when scaling the image down. FilterMode mag Filter mode used when scaling the image up. number anisotropy Maximum amount of Anisotropic Filtering used. See Also

love.graphics.getDefaultImageFilter

love.graphics.getDefaultImageFilter Available since LÖVE 0.8.0 and removed in LÖVE 0.9.0 It has been renamed to love.graphics.getDefaultFilter. Returns the default scaling filters. Function Synopsis min, mag = love.graphics.getDefaultImageFilter( ) Arguments None. Returns FilterMode min Filter mode used when scaling the image down. FilterMode mag Filter mode used when scaling the image up. See Also love.graphics love.graphics.setDefaultImageFilter

love.graphics.getDimensions

love.graphics.getDimensions Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the width and height in pixels of the window. Function Synopsis width, height = love.graphics.getDimensions( ) Arguments None. Returns number width The width of the window. number height The height of the window. See Also love.graphics love.graphics.getWidth love.graphics.getHeight