Class: Diamond

Diamond

Diamond

new GOWN.shapes.Diamond(color, alpha, width, height)

Basic diamond shape
Name Type Description
color Number Color of the diamond shape
alpha Number Alpha value of the diamond shape
width Number Width of the diamond shape
height Number Height of the diamond shape

Extends

Members

alphaNumber

The alpha of the shape, setting this will redraw the component.
Default Value:
  • 1.0

colorNumber

The fill color of the shape, setting this will redraw the component. Setting the color to a negative value or 'null', the shape will not be filled (comes in handy when you only want to draw the border).

heightNumber

The height of the shape, setting this will redraw the component.

widthNumber

The width of the shape, setting this will redraw the component.