Skip to main content

Interface: DiceFaceOptions

Defined in: mobjects/probability/DiceFace.ts:11

Options for creating a DiceFace

Properties

backgroundColor?

optional backgroundColor: string

Defined in: mobjects/probability/DiceFace.ts:19

Background fill color. Default: WHITE


center?

optional center: Vector3Tuple

Defined in: mobjects/probability/DiceFace.ts:29

Center position. Default: [0, 0, 0]


cornerRadius?

optional cornerRadius: number

Defined in: mobjects/probability/DiceFace.ts:21

Corner radius for the die face. Default: 0.15


dotColor?

optional dotColor: string

Defined in: mobjects/probability/DiceFace.ts:17

Color for the dots (pips). Default: BLACK


dotRadius?

optional dotRadius: number

Defined in: mobjects/probability/DiceFace.ts:27

Radius of each dot (pip). Default: auto-calculated from size


size?

optional size: number

Defined in: mobjects/probability/DiceFace.ts:15

Side length of the die face square. Default: 1.5


strokeColor?

optional strokeColor: string

Defined in: mobjects/probability/DiceFace.ts:23

Stroke color for the outline. Default: BLACK


strokeWidth?

optional strokeWidth: number

Defined in: mobjects/probability/DiceFace.ts:25

Stroke width. Default: 2


value?

optional value: number

Defined in: mobjects/probability/DiceFace.ts:13

Face value (1-6). Default: 1