FrictionJoint:setMaxForce

FrictionJoint:setMaxForce Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the maximum friction force in Newtons. Function Synopsis FrictionJoint:setMaxForce( force ) Arguments number maxForce Max force in Newtons. Returns Nothing. See Also FrictionJoint FrictionJoint:getMaxForce

FrictionJoint:setMaxTorque

FrictionJoint:setMaxTorque Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the maximum friction torque in Newton-meters. Function Synopsis FrictionJoint:setMaxTorque( torque ) Arguments number torque Maximum torque in Newton-meters. Returns Nothing. See Also FrictionJoint FrictionJoint:getMaxTorque

GearJoint:getJoints

GearJoint:getJoints Available since LÖVE 0.9.2 This function is not supported in earlier versions. Get the Joints connected by this GearJoint. Function Synopsis joint1, joint2 = GearJoint:getJoints( ) Arguments None. Returns Joint joint1 The first connected Joint. Joint joint2 The second connected Joint. See Also GearJoint

GearJoint:getRatio

GearJoint:getRatio Get the ratio of a gear joint. Function Synopsis ratio = GearJoint:getRatio( ) Arguments None. Returns number ratio The ratio of the joint. See Also GearJoint

GearJoint:setRatio

GearJoint:setRatio Set the ratio of a gear joint. Function Synopsis GearJoint:setRatio( ratio ) Arguments number ratio The new ratio of the joint. Returns Nothing. See Also GearJoint

ImageData:encode

ImageData:encode Encodes the ImageData and optionally writes it to the save directory. Function Available since LÖVE 0.10.0 This variant is not supported in earlier versions. Synopsis filedata = ImageData:encode( format, filename ) Arguments ImageFormat format The format to encode the image as. string filename (nil) The filename to write the file to. If nil, no file will be written but the FileData will still be returned. Returns FileData filedata The encoded image as a new FileData o

ImageData:getDimensions

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

ImageData:getHeight

ImageData:getHeight Gets the height of the ImageData in pixels. Function Synopsis height = ImageData:getHeight( ) Arguments None. Returns number height The height of the ImageData in pixels. See Also ImageData

ImageData:getPixel

ImageData:getPixel Gets the color of a pixel at a specific position in the image. Valid x and y values start at 0 and go up to image width and height minus 1. Non-integer values are floored. Prior to 0.10.2, this function does not properly handle non-integer coordinates, and may produce an invalid result when non-integer values are passed. Function Synopsis r, g, b, a = ImageData:getPixel( x, y ) Arguments number x The position of the pixel on the x-axis. number y The position of the pixel

ImageData:getString

ImageData:getString Removed in LÖVE 0.9.0 It has been moved to Data:getString. Gets the full ImageData as a string. Function Synopsis pixels = ImageData:getString( ) Arguments None. Returns string pixels The raw data. See Also ImageData