StaticcreateThis returns an HTML Canvas element and is used privately by getSvgTexture
StaticgetConstructs a Texture definition for an HTML Canvas Element based Texture
StaticgetGets a Texture defintion for a Rounded Rectangle
The Rounded Rectangle is drawn onto an HTML Canvas, and then rendered by Lightning via a Lightning.textures.StaticCanvasTexture
Width of rectangle
Height of rectangle
Corner radius of rectangle
OptionalstrokeWidth: numberStroke width of rectangle outline
OptionalstrokeColor: numberColor of rectangle outline
Optionalfill: booleantrue - Fill rectangle with fillColor, false - don't fill rectangle
OptionalfillColor: numberColor to fill the rectangle with (if fill === true)
StaticgetGets a Texture defintion for a Drop-Shadow Rectangle
Width of rectangle
Height of rectangle
Optionalradius: CornerRadiusCorner radius of rectangle
Optionalblur: numberOptionalmargin: numberOffset to shift shadow
The Shadow Rectangle is drawn onto an HTML Canvas, and then rendered by Lightning via a Lightning.textures.StaticCanvasTexture
StaticgetGets a Texture defintion for an SVG Texture
URL to the SVG file
Width to render the SVG at
Height to render the SVG at
The SVG is downloaded, drawn onto an HTML Canvas, and then rendered by Lightning via a Lightning.textures.StaticCanvasTexture
Useful functions for creating some commonly used textures.