Rasterizer:getAdvance

Rasterizer:getAdvance Available since LÖVE 0.7.0 This function is not supported in earlier versions. TODO See Also Rasterizer

RandomGenerator:setState

RandomGenerator:setState Available since LÖVE 0.9.1 This function is not supported in earlier versions. Sets the current state of the random number generator. The value used as an argument for this function is an opaque implementation-dependent string and should only originate from a previous call to RandomGenerator:getState. This is different from RandomGenerator:setSeed in that setState directly sets the RandomGenerator's current implementation-dependent state, whereas setSeed gives it a

RandomGenerator:setSeed

RandomGenerator:setSeed Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the seed of the random number generator using the specified integer number. Function Synopsis RandomGenerator:setSeed( seed ) Arguments number seed The integer number with which you want to seed the randomization. Must be within the range of [1, 2^53]. Returns Nothing. Notes Due to Lua's use of double-precision floating point numbers, values above 2^53 cannot be accurately repres

RandomGenerator:randomNormal

RandomGenerator:randomNormal Available since LÖVE 0.9.0 This function is not supported in earlier versions. Get a normally distributed pseudo random number. Function Synopsis number = RandomGenerator:randomNormal( stddev, mean ) Arguments number stddev (1) Standard deviation of the distribution. number mean (0) The mean of the distribution. Returns number number Normally distributed random number with variance (stddev)² and the specified mean. See Also RandomGenerator love.math.r

RandomGenerator:random

RandomGenerator:random Available since LÖVE 0.9.0 This function is not supported in earlier versions. Generates a pseudo-random number in a platform independent manner. Function Get uniformly distributed pseudo-random number within [0, 1]. Synopsis number = RandomGenerator:random( ) Arguments None. Returns number number The pseudo-random number. Function Get uniformly distributed pseudo-random integer number within [1, max]. Synopsis number = RandomGenerator:random( max ) Arguments n

RandomGenerator:getState

RandomGenerator:getState Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets the current state of the random number generator. This returns an opaque implementation-dependent string which is only useful for later use with RandomGenerator:setState. This is different from RandomGenerator:getSeed in that getState gets the RandomGenerator's current state, whereas getSeed gets the previously set seed number. Function Synopsis state = RandomGenerator:getState( )

RandomGenerator:getSeed

RandomGenerator:getSeed Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the seed of the random number generator object. The seed is split into two numbers due to Lua's use of doubles for all number values - doubles can't accurately represent integer values above 2^53, but the seed value is an integer number in the range of [0, 2^64 - 1]. Function Synopsis low, high = RandomGenerator:getSeed( ) Arguments None. Returns number low Integer number represen

Quad:setViewport

Quad:setViewport Sets the texture coordinates according to a viewport. Function Synopsis Quad:setViewport( x, y, w, h ) Arguments number x The top-left corner along the x-axis. number y The top-right corner along the y-axis. number w The width of the viewport. number h The height of the viewport. Returns Nothing. See Also Quad

Quad:getViewport

Quad:getViewport Gets the current viewport of this Quad. Function Synopsis x, y, w, h = Quad:getViewport( ) Arguments None. Returns number x The top-left corner along the x-axis. number y The top-right corner along the y-axis. number w The width of the viewport. number h The height of the viewport. See Also Quad

Quad:getTextureDimensions

Quad:getTextureDimensions Available since LÖVE 0.10.2 This function is not supported in earlier versions. Gets reference texture dimensions initially specified in love.graphics.newQuad. Function Synopsis sw, sh = Quad:getTextureDimensions( ) Arguments None. Returns number sw The Texture width used by the Quad. number sh The Texture height used by the Quad. See Also Quad Quad:getViewport