Garry's Mod Wiki

GWEN

GWEN is a system that allows you to load a spritesheet and generate a skin out of it.

Methods

function GWEN.CreateTextureBorder( number x, number y, number w, number h, number left, number top, number right, number bottom, IMaterial material = nil )
Used in derma skins to create a bordered rectangle drawing function from an image. The texture is taken from SKIN. GwenTexture when the material argument is not supplied.
Used in derma skins to create a rectangle drawing function from an image. The rectangle will not be scaled, but instead it will be drawn in the center of the box. The texture is taken from SKIN. GwenTexture when the material is not supplied.
function GWEN.CreateTextureNormal( number x, number y, number w, number h, IMaterial material = nil )
Used in derma skins to create a rectangle drawing function from an image. The texture of the rectangle will be scaled. The texture is taken from SKIN. GwenTexture when the material is not supplied.
When used in a material skin, it returns a color value from a point in the skin image.