cubeForms

Description

rects, circles etc

Methods

Rectangles

rectangle(id: string, pos: vector, size: vector, color: Color): table

render a filled rectangle in a given coords with specified size and color

rectangle_round(id: string, pos: vector, size: vector, color: Color, radius: number): table

render a filled rounded rectangle in a given coords with specified size, color and round radius

rectangle_outline(id: string, pos: vector, size: vector, color: Color, thickness: number): table

render an outlined rectangle in a given coords with specified size, color and thickness

rectangle_outline_round(id: string, pos: vector, size: vector, color: Color, radius: number, thickness: number): table

render an outlined rounded rectangle in a given coords with specified size, color, round radius and thickness

rectangle_fade(id: string, pos: vector, size: vector, color: Color, alpha0: number, alpha1: number, horizontal: boolean): table

render a faded rectangle in a given coords with specified size and color can be rotated horizontal

blur(id: string, pos: vector, size: vector, alpha: number, amount: number): table

render a blur in a given coords with specified size, alpha and ammount

render a menu styled rect in a given coords with specified size and gradient presence

Triangles

render a filled triagnle with vertices in a given coords with spicefied color

render an outlined triagnle with vertices in a given coords with spicefied color and thickness

Circles

render a circle in a given coords with spicefied color, radius, start degrees and precentage

render an outlined circle with center in a given coords with spicefied color, radius, start degrees, precentage and thickness

render a faded circle with center in a given coords with spicefied color, alpha, radius, start degrees, precentage and fade speed

Last updated